/* Devices: the first page's section `devices` and the page /devices/ (parts/devices.py). Every class starts dv-.

   The pictures are drawn at a fixed design size (--dw by --dh) and scaled to the column by --k. --k is worked out from
   --fit, which the head's script sets before the first paint (or the steps below when there is no script): the width
   of the column is a plain number for each band of screen widths, so this is arithmetic on numbers, never trig. */
.dv-home, .dv-page { --dv-f: var(--fit, 1); --dv-cw: min(1100, 1600 * var(--dv-f) - 40); }
@media (max-width: 1640px) { .dv-home, .dv-page { --dv-f: var(--fit, .875); } }
@media (max-width: 1440px) { .dv-home, .dv-page { --dv-f: var(--fit, .75); } }
@media (max-width: 1240px) { .dv-home, .dv-page { --dv-f: var(--fit, .625); } }
@media (max-width: 1040px) { .dv-home, .dv-page { --dv-f: var(--fit, .6); } }
/* Under 1000 the wrap's margins are 4% of the width; at 760 and under, --fit is (width - 16) / 1100. */
@media (max-width: 999px) { .dv-home, .dv-page { --dv-f: var(--fit, .45); --dv-cw: calc(1472 * var(--dv-f) + 36.8); } }
@media (max-width: 760px) { .dv-home, .dv-page { --dv-f: var(--fit, .53); --dv-cw: calc(1012 * var(--dv-f) + 14.72); } }
@media (max-width: 600px) { .dv-home, .dv-page { --dv-f: var(--fit, .42); } }
@media (max-width: 499px) { .dv-home, .dv-page { --dv-f: var(--fit, .34); --dv-cw: calc(1100 * var(--dv-f) - 24); } }
@media (max-width: 400px) { .dv-home, .dv-page { --dv-f: var(--fit, .3); } }

.dv-fit { --k: min(1, var(--dv-cw) / var(--dw)); position: relative; width: calc(var(--dw) * var(--k) * 1px);
  height: calc(var(--dh) * var(--k) * 1px); margin: 0 auto; }
.dv-fit > :first-child { position: absolute; left: 0; top: 0; width: calc(var(--dw) * 1px); height: calc(var(--dh) * 1px);
  transform: scale(var(--k)); transform-origin: 0 0; }

/* ---------------------------------------------------------------- the devices, as the app draws itself */
.dv-mac, .dv-pc, .dv-phone { position: absolute; color: var(--ink); font-size: 12.5px; line-height: 1.4; letter-spacing: 0; text-align: left; }
.dv-tag { position: absolute; left: 0; bottom: calc(100% + 12px); display: flex; align-items: center; gap: 6px; white-space: nowrap;
  font-size: 13px; color: #ffffffb3; }
.dv-mac { display: flex; flex-direction: column; border-radius: 14px; background: #f1f1ef; overflow: visible;
  box-shadow: 0 0 0 .5px #00000040, 0 40px 80px -30px #000000b3, 0 10px 24px -12px #00000066; }
.dv-mac > .dv-body { border-radius: 14px; overflow: hidden; }
.dv-body { flex: 1; min-height: 0; display: flex; }
.dv-lights { display: flex; align-items: center; gap: 7px; height: 36px; padding-left: 6px; flex: none; }
.dv-lights i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.dv-lights i:nth-child(2) { background: #febc2e; } .dv-lights i:nth-child(3) { background: #28c840; }
.dv-lights .ic { margin-left: 10px; color: var(--muted); }
.dv-side { width: 176px; flex: none; display: flex; flex-direction: column; gap: 1px; padding: 0 7px 8px; overflow: hidden; }
.dv-row { display: flex; align-items: center; gap: 7px; height: 27px; padding: 0 9px; border-radius: 7px; white-space: nowrap; }
.dv-row > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.dv-row .ic { color: var(--muted); }
.dv-row.in { margin-left: 16px; }
.dv-row.sel { background: #ffffffe0; box-shadow: 0 0 0 .5px #0000001a, 0 1px 2px #00000014; }
.dv-row.sel .ic { color: var(--ink); }
.dv-new { background: #ffffffa6; box-shadow: 0 0 0 .5px #0000001a; margin-bottom: 4px; }
.dv-switch { margin-bottom: 4px; }
.dv-switch .ic:last-child { color: var(--faint); }
.dv-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ink); flex: none; }
.dv-label { padding: 12px 9px 4px; font-size: 11px; color: var(--faint); }
.dv-chat { display: flex; gap: 8px; padding: 4px 9px; white-space: nowrap; }
.dv-chat span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.dv-chat i { font-style: normal; color: var(--faint); font-size: 11px; }
.dv-grow { flex: 1; }
.dv-sheet { position: relative; flex: 1; min-width: 0; margin: 6px 6px 6px 0; padding: 40px 26px 0; border-radius: 10px;
  background: #fff; box-shadow: 0 0 0 .5px #0000001a, 0 2px 8px #0000000f; overflow: hidden; }
.dv-notch { position: absolute; top: 0; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 6px;
  padding: 5px 12px 6px; border-radius: 0 0 12px 12px; background: #f1f1ef; box-shadow: 0 0 0 .5px #0000001a; font-size: 11.5px;
  color: var(--muted); white-space: nowrap; }
.dv-title h4 { font-size: 19px; font-weight: 700; letter-spacing: -.015em; line-height: 1.2; }
.dv-title p { color: var(--faint); font-size: 12px; margin-top: 2px; }
.dv-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.dv-progress { display: flex; align-items: center; gap: 12px; margin: 14px 0 6px; }
.dv-count { position: relative; display: grid; font-size: 12px; color: var(--muted); white-space: nowrap; }
.dv-count b { grid-area: 1 / 1; font-weight: 500; }
.dv-meter { position: relative; flex: 1; height: 5px; border-radius: 3px; background: #0000000f; overflow: hidden; }
.dv-meter i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: var(--ink); }
.dv-meter .dv-meter-next { border-radius: 0 3px 3px 0; transform-origin: left; }
.dv-list { display: flex; flex-direction: column; }
.dv-item { position: relative; display: flex; align-items: center; gap: 10px; height: 34px; border-top: 1px solid #0000000d; white-space: nowrap; }
.dv-item::before { content: ""; position: absolute; inset: 1px -10px; border-radius: 8px; background: #2f6fd1; opacity: 0; }
.dv-box { position: relative; z-index: 1; width: 16px; height: 16px; flex: none; border-radius: 5px; box-shadow: inset 0 0 0 1.5px #00000033; }
.dv-fill { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 5px; background: var(--ink); color: #fff; }
.dv-fill .ic { stroke-width: 3; }
.dv-box:not(.on):not(.live) .dv-fill { display: none; }
.dv-what { position: relative; z-index: 1; flex: 1; min-width: 0; }
.dv-what b { position: relative; display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; font-weight: 400; }
.dv-strike { position: absolute; left: 0; right: 0; top: 52%; height: 1px; background: #00000059; transform-origin: left; transform: scaleX(0); }
.dv-item.done .dv-what b, .dv-item.live .dv-what b { color: var(--faint); }
.dv-item.done .dv-strike, .dv-item.live .dv-strike { transform: none; }
.dv-pr { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 4px; font: 11px ui-monospace, "SF Mono", Menlo, monospace;
  color: var(--faint); padding: 1px 6px; border-radius: 5px; background: #0000000a; }
.dv-who { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; width: 92px; flex: none; justify-content: flex-end; }
.dv-who i { font-style: normal; font-size: 11px; color: var(--faint); width: 52px; }
.dv-face { display: inline-grid; place-items: center; flex: none; border-radius: 50%; background: var(--c); color: #fff; font-weight: 600;
  letter-spacing: 0; box-shadow: 0 0 0 1.5px #fff; }
.dv-file { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 9px 12px; border-radius: 10px; background: #f4f4f3; white-space: nowrap; }
.dv-file > .ic:first-child { color: var(--muted); }
.dv-file > .ic:last-child { color: var(--faint); margin-left: auto; }
.dv-file span { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.dv-file b { font-weight: 500; } .dv-file i { font-style: normal; font-size: 11px; color: var(--faint); }

/* Windows: its own title bar (the app's name and the three buttons), and dark mode when it is the PC's choice. */
.dv-pc { display: flex; flex-direction: column; border-radius: 8px; background: #f3f3f3; overflow: visible;
  box-shadow: 0 0 0 1px #0000004d, 0 40px 80px -30px #000000b3, 0 10px 24px -12px #00000066; }
.dv-pc > .dv-body { border-radius: 0 0 8px 8px; overflow: hidden; }
.dv-bar { display: flex; align-items: center; gap: 8px; height: 32px; padding-left: 10px; flex: none; font-size: 12px; border-radius: 8px 8px 0 0; }
.dv-bar img { border-radius: 4px; }
.dv-ctl { margin-left: auto; display: flex; height: 100%; }
.dv-ctl svg { box-sizing: content-box; padding: 11px 17px; color: var(--ink); }
.dv-pc .dv-side { padding-top: 8px; }
.dv-pc .dv-sheet { margin: 0; border-radius: 0; box-shadow: -1px 0 0 #0000000f; }
.dv-pc .dv-row.sel { border-radius: 6px; }
.dv-rail { width: 46px; flex: none; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0; }
.dv-ri { position: relative; display: grid; place-items: center; width: 30px; height: 28px; border-radius: 7px; color: var(--muted); }
.dv-ri.sel { background: #ffffff1f; color: inherit; }
.dv-ri i { position: absolute; right: 3px; top: 4px; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.dv-gap { height: 8px; }
.dv-pc.dark { background: #202023; color: #ececee; --muted: #a1a1a8; --faint: #8a8a92; }
.dv-pc.dark .dv-ctl svg { color: #ececee; }
.dv-pc.dark .dv-sheet { background: #19191b; box-shadow: -1px 0 0 #ffffff12; }
.dv-pc.dark .dv-notch { background: #202023; box-shadow: 0 0 0 .5px #ffffff1f; }
.dv-pc.dark .dv-item { border-top-color: #ffffff12; }
.dv-pc.dark .dv-box { box-shadow: inset 0 0 0 1.5px #ffffff40; }
.dv-pc.dark .dv-fill { background: #ececee; color: #19191b; }
.dv-pc.dark .dv-meter { background: #ffffff17; } .dv-pc.dark .dv-meter i { background: #ececee; }
.dv-pc.dark .dv-strike { background: #ffffff59; }
.dv-pc.dark .dv-what b { color: #ececee; }
.dv-pc.dark .dv-item.done .dv-what b, .dv-pc.dark .dv-item.live .dv-what b { color: var(--faint); }

/* The iPhone: 280 by 608, the shape of a 402 by 874 screen. The status bar, the sheet under it with the glass menu
   button and the title beside it, the agent's notch as a round button in the sheet's bottom corner. */
.dv-phone { width: 280px; height: 608px; padding: 9px; border-radius: 52px; background: #1b1b1d;
  box-shadow: inset 0 0 0 1.5px #3a3a3e, 0 0 0 1px #000, 0 40px 80px -24px #000000cc, 0 12px 28px -12px #00000080; }
.dv-glass { position: relative; height: 100%; border-radius: 43px; background: #e9e9e6; overflow: hidden; display: flex; flex-direction: column; }
.dv-status { display: flex; align-items: center; justify-content: space-between; height: 42px; padding: 4px 26px 0 30px; flex: none; font-size: 13px; }
.dv-status b { font-weight: 600; }
.dv-status span { display: flex; align-items: center; gap: 5px; }
.dv-island { position: absolute; top: 9px; left: 50%; width: 82px; height: 24px; margin-left: -41px; border-radius: 14px; background: #000; }
.dv-batt { width: 21px; height: 10px; border-radius: 3px; box-shadow: inset 0 0 0 1px #0000008c; position: relative; }
.dv-batt::after { content: ""; position: absolute; inset: 2px 5px 2px 2px; border-radius: 1px; background: var(--ink); }
.dv-psheet { position: relative; flex: 1; min-height: 0; margin: 0 5px 5px; padding: 10px 12px 0; border-radius: 12px 12px 38px 38px;
  background: #fff; box-shadow: 0 0 0 .5px #0000001a; overflow: hidden; }
.dv-phead { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.dv-phead b { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.dv-menu { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #f6f6f4;
  box-shadow: 0 0 0 .5px #0000001f, 0 2px 6px #00000014; }
.dv-psub { display: flex; align-items: center; gap: 10px; margin: 0 2px 6px; }
.dv-plist .dv-item { height: 40px; font-size: 14px; }
.dv-plist .dv-box { width: 20px; height: 20px; border-radius: 6px; } .dv-plist .dv-fill { border-radius: 6px; }
.dv-plist .dv-item::before { inset: 1px -6px; }
.dv-knob { position: absolute; right: 10px; bottom: 10px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: #f6f6f4; box-shadow: 0 0 0 .5px #0000001f, 0 4px 12px #0000001f; }
.dv-homebar { position: absolute; bottom: 7px; left: 50%; width: 96px; height: 4px; margin-left: -48px; border-radius: 3px; background: #000000d9; z-index: 4; }
.dv-pfile { margin: 10px 0 0; }
/* A finger's press: a soft ring where the screen was touched (devices.js plays it; still, it is not drawn). */
.dv-tap { position: absolute; z-index: 3; left: -3px; top: 50%; width: 34px; height: 34px; margin-top: -17px; border-radius: 50%;
  background: #11111326; box-shadow: 0 0 0 1.5px #1111134d; opacity: 0; pointer-events: none; }
.dv-pfile .dv-tap { left: 2px; }

/* ---------------------------------------------------------------- motion: the tick that travels */
/* Still (no script, or reduced motion), every screen shows the item ticked. devices.js sets .dv-armed, which shows it
   unticked, and .dv-go once the picture is in sight: the phone's press, then the tick on the phone, then on the others. */
.dv-armed .dv-item.live .dv-fill { opacity: 0; transform: scale(.6); }
.dv-armed .dv-item.live .dv-strike { transform: scaleX(0); }
.dv-armed .dv-item.live .dv-what b { color: var(--ink); }
.dv-armed .dv-pc.dark .dv-item.live .dv-what b { color: #ececee; }
.dv-armed .dv-now, .dv-armed .dv-new-who { opacity: 0; }
.dv-count .dv-was { opacity: 0; }
.dv-armed .dv-count .dv-was { opacity: 1; }
.dv-armed .dv-meter-next { transform: scaleX(0); }
.dv-go .dv-item.live .dv-fill { opacity: 1; transform: none; transition: opacity .2s var(--dv-at), transform .45s cubic-bezier(.3, 1.5, .5, 1) var(--dv-at); }
.dv-go .dv-item.live .dv-strike { transform: none; transition: transform .35s ease-out calc(var(--dv-at) + .1s); }
.dv-go .dv-item.live .dv-what b { color: var(--faint); transition: color .3s var(--dv-at); }
.dv-go.dv-armed .dv-pc.dark .dv-item.live .dv-what b { color: var(--faint); }
.dv-go .dv-now, .dv-go .dv-new-who { opacity: 1; transition: opacity .3s calc(var(--dv-at) + .1s); }
.dv-armed.dv-go .dv-count .dv-was { opacity: 0; transition: opacity .2s var(--dv-at); }
.dv-go .dv-meter-next { transform: none; transition: transform .5s cubic-bezier(.2, .7, .2, 1) calc(var(--dv-at) + .1s); }
.dv-live-on { --dv-at: .55s; }
.dv-live-on .lag { --dv-at: 1.45s; }
.dv-go .dv-phone .dv-item.live .dv-tap { animation: dv-press .7s ease-out .2s both; }
.dv-go .lag .dv-item.live::before { animation: dv-flash 1.6s ease-out var(--dv-at) both; }
@keyframes dv-press { 0% { opacity: 0; transform: scale(.6); } 25% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.5); } }
@keyframes dv-flash { 0% { opacity: 0; } 15% { opacity: .1; } 100% { opacity: 0; } }

/* ---------------------------------------------------------------- the first page: three devices on the pavement */
.dv-home .split-head .title { max-width: 680px; }
.dv-stage { margin-top: 8px; }
.dv-scene-fit { --dw: 1100; --dh: 640; border-radius: calc(32px * var(--k)); background: #0f0f11; overflow: hidden; isolation: isolate; }
.dv-scene > .ground { left: -200px; top: -120px; width: 1400px; height: 880px; z-index: -1; }
.dv-scene { overflow: hidden; }
.dv-at-pc { left: 48px; top: 96px; width: 390px; height: 352px; z-index: 1; }
.dv-at-mac { left: 228px; top: 150px; width: 580px; height: 430px; z-index: 2; }
.dv-at-phone { left: 784px; top: 48px; z-index: 3; transform: scale(.9); transform-origin: 0 0; }
.dv-at-pc .dv-sheet { padding: 36px 20px 0; }
.dv-at-pc .dv-item { height: 30px; }
.dv-at-mac .dv-who { width: 88px; }
.dv-legend { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 24px; margin-top: 16px; font-size: 13.5px; color: var(--muted); }
.dv-legend span { display: flex; align-items: center; gap: 8px; }
.dv-legend span:nth-child(1) { justify-content: flex-start; } .dv-legend span:nth-child(2) { justify-content: center; } .dv-legend span:nth-child(3) { justify-content: flex-end; }

.dv-points { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: 48px; }
.dv-points li { display: flex; flex-direction: column; gap: 14px; }
.dv-pic-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--card); color: var(--ink); }
.dv-points b { display: block; font-size: 16px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 6px; }
.dv-points p { color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.dv-home .after { margin-top: 48px; }

/* ---------------------------------------------------------------- the page */
.dv-marks { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin-top: 22px; font-size: 14px; color: #ffffffb3; }
.dv-marks span { display: inline-flex; align-items: center; gap: 7px; }
.dv-marks .logo { color: #fff; }
.dv-page .title.small { max-width: 640px; }
.dv-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 40px 64px; align-items: start; margin-bottom: 48px; }
.dv-text p { color: var(--muted); font-size: 16px; line-height: 1.6; max-width: 600px; }
.dv-text p + p { margin-top: 12px; }
.dv-text b { color: var(--ink); font-weight: 600; }
.dv-text a, .dv-facts a, .dv-answers a { color: var(--ink); text-decoration: underline; text-decoration-color: #00000040; text-underline-offset: 3px; }
.dv-fine { font-size: 14px !important; color: var(--faint) !important; }
.dv-panel { padding: 0; }

/* The brain and its windows. Wide: the computer in the middle, its windows round it, the AI account above. */
.dv-diagram-wrap { border-radius: 28px; background: var(--card); padding: 36px clamp(16px, 3vw, 40px) 40px; }
.dv-diagram { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr);
  grid-template-rows: auto auto auto; grid-template-areas: "ai ai ai" "n0 core n2" "n1 core n3"; gap: 28px 56px; align-items: center; }
.dv-wires { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; z-index: 0; }
.dv-wires path { fill: none; stroke: #00000038; stroke-width: 1.5; stroke-dasharray: 5 5; vector-effect: non-scaling-stroke; }
.dv-wires .dv-up { stroke: #0000004d; stroke-dasharray: none; }
.dv-ai { grid-area: ai; justify-self: center; position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; padding: 9px 16px;
  border-radius: 999px; background: #fff; box-shadow: var(--lift); font-size: 14px; color: var(--muted); }
.dv-ai span { margin-left: 4px; color: var(--ink); font-weight: 500; }
.dv-core { grid-area: core; position: relative; z-index: 1; padding: 22px 22px 18px; border-radius: 22px; background: var(--ink); color: #fff;
  box-shadow: 0 24px 48px -24px #00000080; }
.dv-core-head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid #ffffff1f; }
.dv-core-head img { border-radius: 8px; }
.dv-core-head span { display: flex; flex-direction: column; line-height: 1.3; }
.dv-core-head b { font-size: 17px; font-weight: 600; } .dv-core-head i { font-style: normal; font-size: 13px; color: #ffffffa6; }
.dv-core ul { list-style: none; padding: 12px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; }
.dv-core li { display: flex; align-items: center; gap: 9px; padding: 6px 0; font-size: 14px; }
.dv-core li .ic { color: #ffffffa6; }
.dv-node { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; }
.dv-n0 { grid-area: n0; } .dv-n1 { grid-area: n1; } .dv-n2 { grid-area: n2; } .dv-n3 { grid-area: n3; }
.dv-node b { margin-top: 10px; font-size: 15px; font-weight: 600; } .dv-node span { font-size: 13px; color: var(--muted); }
.dv-icon { position: relative; display: flex; flex-direction: column; align-items: center; height: 92px; justify-content: flex-end;
  padding: 0 10px; background: var(--card); }
.dv-wirelabel { grid-column: 1 / -1; justify-self: center; position: relative; z-index: 1; display: flex; align-items: center; gap: 8px;
  margin-top: 4px; font-size: 13.5px; color: var(--muted); background: var(--card); padding: 0 10px; }
.dv-lockchip { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: var(--lift); color: var(--ink); }
/* A device at the size of a symbol: its frame, with the sidebar and the sheet in it as bars. */
.dv-ms { display: flex; gap: 3px; width: 100%; height: 100%; padding: 4px; border-radius: 4px; background: #f1f1ef; }
.dv-ms i { display: flex; flex-direction: column; gap: 3px; }
.dv-ms-side { width: 26%; padding-top: 4px; } .dv-ms-sheet { flex: 1; padding: 6px 5px; border-radius: 3px; background: #fff; }
.dv-ms em { display: block; height: 3px; border-radius: 2px; background: #0000001f; }
.dv-ms-side em.on { background: #00000059; }
.dv-ms-sheet em:first-child { width: 55%; height: 4px; background: #00000059; } .dv-ms-sheet em:nth-child(3) { width: 80%; }
.dv-f-laptop { display: block; width: 104px; height: 66px; padding: 4px; border-radius: 7px 7px 2px 2px; background: #1b1b1d; }
.dv-base { display: block; width: 126px; height: 6px; border-radius: 0 0 7px 7px; background: #c9c9cd; }
.dv-f-monitor { display: flex; flex-direction: column; width: 112px; height: 70px; padding: 3px; border-radius: 5px; background: #1b1b1d; }
.dv-winbar { height: 5px; flex: none; margin-bottom: 1px; border-radius: 2px 2px 0 0; background: #2c2c30; }
.dv-f-monitor .dv-ms { border-radius: 0 0 2px 2px; padding-top: 3px; }
.dv-stand { display: block; width: 34px; height: 14px; background: linear-gradient(#a9a9ae, #c9c9cd); clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%); }
.dv-f-phone { display: block; width: 46px; height: 92px; padding: 3px; border-radius: 11px; background: #1b1b1d; }
.dv-ms-p { border-radius: 8px; padding: 10px 4px 4px; background: #f1f1ef; }
.dv-ms-p .dv-ms-sheet { border-radius: 4px 4px 6px 6px; }
.dv-linux .dv-ms { background: #e9ebef; }

/* Where a press happens: the iPhone opened the notes; the Mac beside it only shows the tick. */
.dv-pressed-fit { --dw: 1100; --dh: 600; }
.dv-pressed { overflow: visible; }
.dv-pp-phone { left: 70px; top: 0; }
.dv-pp-mac { left: 420px; top: 60px; width: 640px; height: 470px; }
.dv-caps { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 24px; max-width: 1100px; margin: 24px auto 0; }
.dv-cap { display: flex; flex-direction: column; gap: 2px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; }
.dv-cap b { font-weight: 600; } .dv-cap span { color: var(--muted); }
.dv-pressed .dv-mac { box-shadow: 0 0 0 .5px #00000026, 0 30px 60px -30px #00000059, 0 10px 24px -14px #00000033; }
.dv-pressed .dv-phone { box-shadow: inset 0 0 0 1.5px #3a3a3e, 0 0 0 1px #000, 0 30px 60px -24px #00000073; }
/* QuickLook on the iPhone: a bar with Done, the name and the share button, the pages under it. */
.dv-look { position: absolute; z-index: 5; inset: 0; display: flex; flex-direction: column; background: #f2f2f0; border-radius: inherit; }
.dv-look-bar { display: flex; align-items: center; gap: 8px; padding: 14px 14px 10px; font-size: 13px; background: #f8f8f7; border-bottom: 1px solid #0000000f; }
.dv-look-bar b { color: #2f6fd1; font-weight: 600; } .dv-look-bar span { flex: 1; text-align: center; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dv-look-bar .ic { color: #2f6fd1; }
.dv-paper { position: relative; flex: 1; margin: 14px 14px 0; padding: 18px 16px; border-radius: 3px 3px 0 0; background: #fff;
  box-shadow: 0 1px 4px #00000026; font: 11px/1.5 Georgia, serif; color: #333; }
.dv-n-t { font-size: 19px; line-height: 1.2; letter-spacing: -.01em; color: var(--ink); }
.dv-n-d { font: 10.5px var(--font); color: var(--faint); margin: 2px 0 6px; }
.dv-n-h { font: 600 11.5px/1.3 var(--font); color: var(--ink); margin-top: 12px; }
.dv-n-p { margin-top: 3px; }
.dv-pnum { position: absolute; left: 50%; bottom: 46px; transform: translateX(-50%); padding: 3px 10px; border-radius: 999px; background: #0000008c;
  color: #fff; font: 11px var(--font); }
/* The press that opens it comes after the tick. */
.dv-armed[data-dv-open] .dv-look { transform: translateY(102%); }
.dv-go[data-dv-open] .dv-look { transform: none; transition: transform .55s cubic-bezier(.2, .8, .2, 1) 2.9s; }
.dv-go[data-dv-open] .dv-pfile .dv-tap { animation: dv-press .7s ease-out 2.5s both; }

/* Pairing: two rows of three steps, each with a piece of the real screens. */
.dv-flows { display: flex; flex-direction: column; gap: 56px; }
.dv-flow h3 { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 600; letter-spacing: -.015em; margin-bottom: 20px; }
.dv-flow ol { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.dv-step { display: flex; flex-direction: column; padding: 10px 10px 22px; border-radius: 24px; background: var(--card); }
.dv-step .dv-num { margin: 20px 12px 6px; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.dv-step h4 { margin: 0 12px 6px; font-size: 16px; font-weight: 600; }
.dv-step p { margin: 0 12px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.dv-pic { position: relative; height: 270px; border-radius: 16px; overflow: hidden; background: var(--ink); display: grid; place-items: center; padding: 18px; }
.dv-pic-phone { place-items: start center; padding: 22px 0 0; }
.dv-pic .dv-phone { position: relative; transform: scale(.72); transform-origin: 50% 0; margin-bottom: -170px; }
.dv-small .dv-phead { margin-bottom: 6px; }
.dv-pic .dv-settings { flex: none; width: 390px; max-width: none; transform: scale(.8); margin: -40px; }
.dv-settings { width: 100%; max-width: 330px; padding: 16px; border-radius: 14px; background: #fff; font-size: 12.5px; line-height: 1.4; }
.dv-settings h5 { font-size: 17px; font-weight: 700; margin-bottom: 10px; letter-spacing: -.01em; }
.dv-group { border-radius: 10px; box-shadow: inset 0 0 0 1px #00000014; }
.dv-set + .dv-set { border-top: 1px solid #00000012; }
.dv-set { padding: 10px 12px; }
.dv-set-row { display: flex; align-items: center; gap: 10px; }
.dv-set-row > span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dv-set-row b { font-weight: 500; } .dv-set-row i { font-style: normal; font-size: 11.5px; color: var(--faint); }
.dv-btn { flex: none; display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 7px; font-size: 12px; font-weight: 500;
  background: #f1f1ef; box-shadow: inset 0 0 0 .5px #0000001f; white-space: nowrap; }
.dv-btn.main { background: var(--ink); color: #fff; box-shadow: none; }
.dv-set-below { display: flex; align-items: center; gap: 12px; padding-top: 10px; }
.dv-set-below .dv-qr { width: 92px; height: 92px; flex: none; border-radius: 8px; box-shadow: inset 0 0 0 1px #00000014; }
.dv-set-below div { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: var(--muted); }
.dv-set-below b { font-weight: 500; color: var(--ink); font-size: 11.5px; }
.dv-qr path, .dv-qr rect:not([fill]) { fill: #111; }
/* The iPhone's Camera, the code in its frame and the link over it. */
.dv-camera .dv-glass { background: #000; color: #fff; }
.dv-camera .dv-status .dv-batt { box-shadow: inset 0 0 0 1px #ffffff8c; } .dv-camera .dv-batt::after { background: #fff; }
.dv-camera .dv-psheet { margin: 0; padding: 0; border-radius: 0; background: #000; box-shadow: none; }
.dv-cam { display: flex; flex-direction: column; height: 100%; }
.dv-cam-view { position: relative; flex: 1; margin: 30px 0 0; background: #4d4b46; display: grid; place-items: center; }
.dv-cam-code { position: relative; width: 150px; height: 150px; display: block; transform: rotate(-4deg); }
.dv-cam-code .dv-qr { width: 100%; height: 100%; border-radius: 4px; box-shadow: 0 10px 30px #0000004d; }
.dv-cam-code i { position: absolute; width: 22px; height: 22px; border: 3px solid #ffd60a; }
.dv-cam-code i:nth-of-type(1) { left: -10px; top: -10px; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.dv-cam-code i:nth-of-type(2) { right: -10px; top: -10px; border-left: 0; border-bottom: 0; border-radius: 0 6px 0 0; }
.dv-cam-code i:nth-of-type(3) { left: -10px; bottom: -10px; border-right: 0; border-top: 0; border-radius: 0 0 0 6px; }
.dv-cam-code i:nth-of-type(4) { right: -10px; bottom: -10px; border-left: 0; border-top: 0; border-radius: 0 0 6px 0; }
.dv-cam-link { position: absolute; left: 50%; top: calc(50% + 100px); transform: translateX(-50%); display: flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 8px; border-radius: 999px; background: #ffd60a; color: #111; white-space: nowrap; font-size: 12.5px; }
.dv-cam-link img { border-radius: 6px; }
.dv-cam-link span { display: flex; flex-direction: column; line-height: 1.2; } .dv-cam-link b { font-weight: 600; }
.dv-cam-link i { font-style: normal; font-size: 10.5px; color: #11111399; }
.dv-cam-foot { height: 150px; flex: none; display: flex; align-items: center; justify-content: space-around; padding: 0 30px 30px; }
.dv-cam-foot b { width: 62px; height: 62px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px #000, 0 0 0 7px #fff; }
.dv-cam-foot i { width: 36px; height: 36px; border-radius: 8px; background: #2c2c2e; }
/* The question a computer asks before a link is kept, as Windows draws it. */
.dv-pic-ask { padding: 18px 14px; }
.dv-winask { width: 100%; max-width: 330px; border-radius: 8px; background: #fff; font-size: 12px; line-height: 1.45;
  box-shadow: 0 0 0 1px #00000040, 0 16px 40px -12px #000000b3; overflow: hidden; }
.dv-winask-bar { display: flex; align-items: center; justify-content: space-between; height: 30px; padding: 0 12px; font-size: 11.5px; color: var(--muted); }
.dv-winask-body { display: flex; gap: 12px; padding: 6px 16px 14px; }
.dv-winask-body img { border-radius: 8px; flex: none; }
.dv-winask-body b { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 4px; }
.dv-winask-body p { color: var(--muted); font-size: 11.5px; }
.dv-winask-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px; background: #f3f3f3; border-top: 1px solid #0000000f; }
.dv-winask-foot .dv-btn { padding: 0 18px; border-radius: 5px; }
/* The sidebar's menu of the Spaces a window shows. */
.dv-under { padding-top: 2px; opacity: .45; }
.dv-mini-side { position: relative; }
.dv-mini-side .dv-menu-pop { position: absolute; z-index: 1; left: 8px; right: 8px; top: 40px; margin: 0; }
.dv-pic .dv-mini-side { align-self: start; margin-top: 8px; }
.dv-mini-side { width: 100%; max-width: 300px; padding: 10px 8px 8px; border-radius: 14px; background: #f1f1ef; font-size: 12.5px; line-height: 1.4; }
.dv-switch.open { background: #ffffffe0; box-shadow: 0 0 0 .5px #0000001a, 0 1px 2px #00000014; }
.dv-menu-pop { margin-top: 6px; padding: 6px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 .5px #00000026, 0 16px 36px -12px #00000059; }
.dv-menu-pop p { padding: 4px 8px 6px; font-size: 11px; color: var(--faint); }
.dv-mi { display: flex; align-items: center; gap: 8px; height: 28px; padding: 0 8px; border-radius: 7px; white-space: nowrap; }
.dv-mi span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.dv-mi .ic { color: var(--muted); }
.dv-mi.on { background: #f1f1ef; } .dv-mi.on .ic { color: var(--ink); }
.dv-note { display: flex; gap: 10px; align-items: flex-start; max-width: 760px; margin-top: 32px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.dv-note .ic { margin-top: 3px; color: var(--ink); }

/* What travels: a black band, two lists and the seal. */
.dv-dark .title { color: #fff; }
.dv-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-top: 40px; }
.dv-col { padding: 26px 26px 22px; border-radius: 22px; background: #1c1c1f; box-shadow: inset 0 0 0 1px #ffffff12; }
.dv-col h3, .dv-sealed h3, .dv-careful h3 { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 14px; }
.dv-col ul { list-style: none; padding: 0; }
.dv-col li { position: relative; padding: 12px 0 12px 20px; border-top: 1px solid #ffffff14; color: #ffffffb3; font-size: 15px; line-height: 1.5; }
.dv-col li::before { content: ""; position: absolute; left: 2px; top: 21px; width: 6px; height: 6px; border-radius: 50%; background: #ffffff59; }
.dv-sealed { align-items: start; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 24px 40px; margin-top: 56px; padding-top: 40px; border-top: 1px solid #ffffff1f; }
.dv-sealed .dv-text p { color: #ffffffb3; }
.dv-sealed .dv-text a { color: #fff; text-decoration-color: #ffffff66; }

.dv-facts { list-style: none; padding: 0; }
.dv-facts li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 20px; padding: 16px 0; border-top: 1px solid #00000014; font-size: 16px; line-height: 1.5; }
.dv-facts li:last-child { border-bottom: 1px solid #00000014; }
.dv-facts b { font-weight: 600; } .dv-facts span { color: var(--muted); }

/* Switching: the office's Spaces in Mara's laptop, the sidebar's menu open. */
.dv-switch-fit { --dw: 1040; --dh: 520; }
.dv-switching .dv-mac { left: 0; top: 0; width: 1040px; height: 520px; box-shadow: 0 0 0 .5px #00000026, 0 30px 60px -30px #00000059, 0 10px 24px -14px #00000033; }
.dv-office .dv-side { width: 230px; }
.dv-office .dv-sheet { padding: 44px 40px 0; }
.dv-menu-over { position: absolute; z-index: 3; left: 7px; top: 36px; width: 232px; font-size: 12.5px; line-height: 1.4; }
.dv-menu-over .dv-switch { visibility: hidden; }
.dv-rota { margin-top: 18px; }
.dv-empty { width: 22px; height: 22px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1.5px #00000026; }
.dv-open b { color: var(--faint); font-weight: 400; }
.dv-rota-row { display: flex; align-items: center; gap: 12px; height: 40px; border-top: 1px solid #0000000d; white-space: nowrap; font-size: 13px; }
.dv-day { width: 38px; color: var(--faint); } .dv-rota-row b { font-weight: 500; flex: 1; } .dv-rota-row i { font-style: normal; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Sharing: two people's windows on one Spaces, each with its own tab. */
.dv-share-fit { --dw: 1100; --dh: 520; }
.dv-sharing { overflow: visible; }
.dv-share-a { left: 0; top: 36px; width: 560px; height: 470px; }
.dv-share-b { left: 580px; top: 36px; width: 520px; height: 470px; }
.dv-sharing .dv-tag { color: var(--muted); }
.dv-sharing .dv-mac, .dv-sharing .dv-pc { box-shadow: 0 0 0 .5px #00000026, 0 30px 60px -30px #00000059, 0 10px 24px -14px #00000033; }
.dv-share-b .dv-side { width: 150px; }
.dv-here { display: flex; align-items: center; padding-top: 2px; }
.dv-here .dv-face + .dv-face { margin-left: -4px; }
.dv-here i { font-style: normal; font-size: 11px; color: var(--faint); margin-left: 7px; white-space: nowrap; }
.dv-tabs { display: flex; gap: 2px; margin: 14px 0 8px; font-size: 12px; }
.dv-tabs span { padding: 3px 10px; border-radius: 7px; color: var(--muted); }
.dv-tabs .on { color: var(--ink); background: #f4f4f3; box-shadow: inset 0 0 0 1px #00000014; }
.dv-log-label { padding: 18px 0 4px; }
.dv-log { display: flex; align-items: center; gap: 9px; height: 30px; white-space: nowrap; font-size: 12px; color: var(--muted); }
.dv-log em { font-style: normal; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; } .dv-log b { font-weight: 500; color: var(--ink); }
.dv-log i { font-style: normal; font-size: 11px; color: var(--faint); }
.dv-careful { max-width: 820px; margin-top: 40px; padding: 24px 26px; border-radius: 22px; background: var(--card); }
.dv-careful p { color: var(--muted); font-size: 15.5px; line-height: 1.6; }

.dv-answers article { padding: 22px 0; border-top: 1px solid #00000014; }
.dv-answers article:first-child { padding-top: 0; border-top: 0; }
.dv-answers h3 { font-size: 18px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 8px; }
.dv-answers p { max-width: 620px; color: var(--muted); font-size: 16px; line-height: 1.55; }

/* ---------------------------------------------------------------- narrower */
@media (max-width: 1100px) {
  .dv-points { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; }
  .dv-flow ol { grid-template-columns: minmax(0, 1fr); }
  .dv-step { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 8px; padding: 10px; }
  .dv-step-words { padding: 0 12px 12px; }
  .dv-intro { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}
@media (max-width: 860px) {
  /* The diagram stands up: the AI account, the computer, then its windows two by two under a line. */
  .dv-diagram { grid-template-columns: 1fr 1fr; grid-template-areas: "ai ai" "core core" "lbl lbl" "n0 n2" "n1 n3"; gap: 20px 12px; }
  .dv-wide-only { display: none; }
  .dv-wirelabel { grid-area: lbl; margin: 0; text-align: center; }
  .dv-diagram::before { content: ""; position: absolute; left: 50%; top: 40px; bottom: 50%; border-left: 1.5px dashed #00000038; }
  .dv-cols, .dv-sealed { grid-template-columns: minmax(0, 1fr); }
  .dv-caps { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}
@media (max-width: 760px) {
  /* A phone sees the iPhone and the Mac, larger, and the PC is said in words. */
  .dv-scene-fit { --dw: 620; --dh: 640; }
  .dv-at-pc { display: none; }
  .dv-at-mac { left: 24px; top: 150px; width: 470px; height: 420px; }
  .dv-at-mac .dv-side { width: 132px; }
  .dv-at-mac .dv-who, .dv-at-mac .dv-pr { display: none; }
  .dv-scene > .ground { left: -480px; }
  .dv-at-phone { left: 340px; top: 70px; transform: scale(.9); }
  .dv-legend { grid-template-columns: minmax(0, 1fr); gap: 6px; margin-top: 14px; font-size: 13px; }
  .dv-legend span:nth-child(n) { justify-content: flex-start; }
  .dv-legend span:first-child { display: none; }
  .dv-points { grid-template-columns: minmax(0, 1fr); }
  /* A phone: the iPhone in front, and the Mac's window behind it to the right, cut by the picture's edge. */
  .dv-pressed-fit { --dw: 620; --dh: 640; }
  .dv-pp-phone { left: 0; top: 0; transform: scale(1.04); transform-origin: 0 0; z-index: 2; }
  .dv-pp-mac { left: 304px; top: 120px; width: 316px; height: 440px; }
  .dv-pp-mac .dv-file i { display: none; }
  .dv-pp-mac .dv-side { display: none; }
  .dv-pp-mac .dv-sheet { margin-left: 6px; padding: 40px 18px 0; }
  .dv-pp-mac .dv-who, .dv-pp-mac .dv-pr { display: none; }
  /* A phone: the sidebar with its menu open, and the sheet's first column beside it. */
  .dv-switch-fit { --dw: 440; --dh: 470; }
  .dv-switching .dv-mac { width: 440px; height: 470px; }
  .dv-office .dv-side { width: 216px; }
  .dv-office .dv-sheet { padding: 44px 16px 0; }
  .dv-office .dv-notch { display: none; }
  .dv-menu-over { width: 218px; }
  .dv-rota-row i, .dv-day { display: none; }
  /* Two windows one above the other, each without its sidebar. */
  .dv-share-fit { --dw: 420; --dh: 960; }
  .dv-share-a { left: 0; top: 30px; width: 420px; height: 440px; }
  .dv-share-b { left: 0; top: 520px; width: 420px; height: 440px; }
  .dv-sharing .dv-side { display: none; }
  .dv-sharing .dv-mac .dv-sheet { margin-left: 6px; }
  .dv-sharing .dv-sheet { padding: 40px 18px 0; }
  .dv-sharing .dv-here i { display: none; }
  .dv-sharing .dv-file { display: none; }
  .dv-facts li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .dv-pic { height: 250px; }
  .dv-step { display: flex; padding: 10px 10px 22px; }
  .dv-step-words { padding: 0; }
  .dv-diagram-wrap { padding: 28px 14px 32px; border-radius: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .dv-tap { display: none; }
}
