/* S8: small illustrative work surfaces, not live product widgets.
   Geometry follows the approved mini-reach study; page type and spacing belong to the landing.
   White/gray surfaces and ink emphasis; preserve connection colors and Mac window dots. */
.reach { background: #f8f8f6; }
.reach [hidden] { display: none !important; }
.reach-scene { position: relative; display: grid; grid-template-columns: minmax(186px,1fr) minmax(244px,1fr) minmax(226px,1fr); column-gap: clamp(45px,6vw,100px); }
.reach-scene > section { min-width: 0; position: relative; z-index: 1; }
.reach-label { margin: 0 0 25px; color: var(--text-body); font: 600 14px/1.5 'Manrope',system-ui,sans-serif; }
.reach-links { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.reach-links path { fill: none; stroke: #d4d4d4; stroke-width: 1; }
.reach-links polygon { fill: #bbb; }
.reach-links [data-route-active='true'] { stroke: #555; stroke-width: 1.3; }
.reach-links polygon[data-route-active='true'] { stroke: none; fill: #555; }
.reach-workspaces { position: relative; width: 222px; max-width: 100%; padding-top: 35px; }
.reach-sync-copy { margin: 28px 0 0 32px; color: var(--text-body); }
.reach-sync-copy > strong { display: block; font-size: 15px; line-height: 1.5; font-weight: 500; }
.reach-sync-copy > p { margin: 9px 0 0; color: var(--text-muted); font-size: 14px; line-height: 1.65; }
.reach-agent-stack { display: grid; grid-template-columns: minmax(0,1fr); gap: 58px; padding-top: 24px; }
.reach-agent-stack .mr-agent { text-align: left; width: min(244px,100%); min-width: 0; cursor: pointer; transition: border-color 160ms,background-color 160ms; }
.reach-agent-stack .mr-agent:hover { border-color: #aaa; }
.reach-agent-stack .mr-agent[aria-pressed='true'] { border-color: #555; background: #f4f4f4; }
.reach-agent-stack .mr-agent:focus-visible { outline: 2px solid #111; outline-offset: 4px; }
.reach-agent-inspect { position: absolute; right: 15px; bottom: 12px; color: #555; font: 11px/1.5 ui-sans-serif,system-ui,sans-serif; }
.reach-targets { padding-bottom: 6px; }
.reach-target { width: 226px; max-width: 100%; min-height: 150px; padding: 11px 15px; margin-bottom: 8px; border: 1px solid transparent; border-radius: 6px; background: #f4f4f4; transition: border-color 160ms,background-color 160ms; }
.reach-target[data-active='true'] { border-color: #999; background: #fff; }
.reach-target .mr-device, .reach-target .mr-window { width: 194px; }
.reach-target .mr-window-body { min-height: 115px; }
.reach-browser-target-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; margin-bottom: 10px; color: #36383a; font: 11px/1.5 ui-sans-serif,system-ui,sans-serif; }
.reach-browser-target-heading strong { font-weight: 600; }
.reach-target .mr-device-foot { margin-top: 6px; }
.reach-target[data-endpoint='server'] { min-height: 181px; }
.reach-target[data-endpoint='browser'] { min-height: 189px; }


/* Copyable miniatures. The scene above owns only placement and links. */
.reach .mr-window, .reach .mr-device, .reach .mr-agent { box-sizing: border-box; color: #36383a; font-family: ui-sans-serif,system-ui,sans-serif; font-size: 11px; line-height: 1.5; }
.reach .mr-window { width: 186px; max-width: 100%; overflow: hidden; border: 1px solid #d4d4d4; border-radius: 4px; background: #fcfcfb; box-shadow: 0 5px 14px #11111106; }
.reach .mr-bar { height: 17px; display: flex; align-items: center; gap: 4px; padding: 0 7px; border-bottom: 1px solid #dedede; background: #f6f6f6; }
.reach .mr-bar i { width: 4px; height: 4px; flex: none; border-radius: 50%; }
.reach .mr-bar i:nth-of-type(1) { background: #ff5f57; }
.reach .mr-bar i:nth-of-type(2) { background: #febc2e; }
.reach .mr-bar i:nth-of-type(3) { background: #28c840; }
.reach .mr-bar span { margin-left: auto; color: #777; font-size: 7px; }
.reach .mr-window-body { padding: 9px 9px 11px; }
.reach .mr-window-title { display: block; margin-bottom: 5px; color: #36383a; font-size: 9px; font-weight: 500; }
.reach .mr-map-row { display: block; margin-top: 3px; padding: 4px 6px; border-left: 2px solid #dedede; background: #fff; color: #36383a; font-size: 8px; line-height: 1.5; }
.reach .mr-map-row.mr-current { border-left-color: #36383a; }
.reach .mr-page-line { display: block; width: 80%; height: 4px; margin: 6px 0; border-radius: 1px; background: #dedede; }
.reach .mr-page-line.mr-short { width: 55%; }
.reach .mr-page-button { display: block; width: 62px; margin-top: 9px; padding: 3px 0; border-radius: 2px; background: #111; color: #fff; text-align: center; font-size: 7px; }
.reach .mr-browser-stack { position: relative; width: 222px; max-width: 100%; height: 230px; }
.reach .mr-browser-stack > .mr-window { position: absolute; width: calc(100% - 32px); height: 166px; box-shadow: none; }
.reach .mr-browser-stack > .mr-window:nth-child(1) { left: 0; top: 0; background: #e8e8e8; }
.reach .mr-browser-stack > .mr-window:nth-child(2) { left: 6px; top: 7px; background: #eee; }
.reach .mr-browser-stack > .mr-window:nth-child(3) { left: 12px; top: 14px; background: #f4f4f4; }
.reach .mr-browser-stack > .mr-window.mr-stack-front { left: 32px; top: 42px; height: 188px; z-index: 2; background: #fcfcfb; box-shadow: 0 10px 25px #1111110c; }
.reach .mr-stack-front .mr-window-body { padding: 9px; }
.reach .mr-chat-preview { display: block; margin-top: 8px; padding: 6px; border: 1px solid #dedede; border-radius: 3px; background: #fff; color: #6b6761; font-size: 7px; line-height: 1.5; }
.reach .mr-chat-preview strong { display: block; color: #36383a; font-size: 7px; font-weight: 500; }
.reach .mr-tab-strip { display: flex; gap: 3px; margin: 0 0 6px; }
.reach .mr-tab-strip span { padding: 2px 5px; border: 1px solid #dedede; border-radius: 2px; color: #777; font-size: 7px; }
.reach .mr-tab-strip .mr-current { background: #fff; color: #36383a; }
.reach .mr-post { display: block; margin-top: 4px; padding: 4px 0; border-top: 1px solid #dedede; color: #36383a; font-size: 7px; line-height: 1.6; }
.reach .mr-post small { display: block; color: #777; font-size: 6px; }
.reach .mr-device { width: 194px; max-width: 100%; }
.reach .mr-device-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; margin-bottom: 10px; }
.reach .mr-device-heading strong { color: #36383a; font-size: 11px; font-weight: 600; }
.reach .mr-connected { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; color: #6b6761; font-size: 8px; }
.reach .mr-connected::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: #48c978; }
.reach .mr-screen { display: block; height: 92px; margin: 0 6px; border: 3px solid #555; border-radius: 4px; overflow: hidden; background: #fcfcfb; color: #36383a; font: 8px/1.8 ui-monospace,SFMono-Regular,Consolas,monospace; }
.reach .mr-screen-bar { display: block; height: 18px; padding: 1px 7px; border-bottom: 1px solid #dedede; background: #f6f6f6; color: #777; font: 7px/16px ui-sans-serif,system-ui,sans-serif; }
.reach .mr-file { display: block; margin: 2px 5px; padding: 0 4px; }
.reach .mr-file.mr-current { background: #fff; }
.reach .mr-laptop-base { display: block; height: 6px; margin-top: 3px; border: 1px solid #aaa; border-radius: 0 0 5px 5px; background: #dedede; }
.reach .mr-laptop-base::after { content: ''; display: block; width: 25px; height: 2px; margin: auto; background: #bbb; }
.reach .mr-device-foot { display: block; margin-top: 9px; color: #6b6761; font-size: 9px; }
.reach .mr-server { display: block; width: 160px; max-width: 100%; padding: 10px; border: 1px solid #d4d4d4; border-radius: 4px; background: #eee; }
.reach .mr-server-slot { display: flex; align-items: center; justify-content: space-between; height: 18px; margin: 4px 0; padding: 0 7px; border: 1px solid #dedede; border-radius: 2px; background: #fff; color: #6b6761; font-size: 8px; }
.reach .mr-server-slot::after { content: ''; width: 4px; height: 4px; flex: none; border-radius: 50%; background: #48c978; }
.reach .mr-agent { position: relative; display: block; width: 244px; max-width: 100%; min-height: 105px; padding: 13px 15px; border: 1px solid #dedede; border-radius: 5px; background: #fff; }
.reach .mr-agent-heading { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.reach .mr-agent-heading strong { font-size: 11px; font-weight: 600; }
.reach .mr-agent-host { color: #777; font-size: 8px; white-space: nowrap; }
.reach .mr-agent-note { display: block; margin-top: 7px; color: #6b6761; font-size: 9px; }
.reach .mr-wave { display: flex; gap: 2px; align-items: center; height: 9px; margin-top: 10px; }
.reach .mr-wave i { display: block; width: 2px; height: 8px; background: #ccc; transform: scaleY(.5); animation: home-reach-wave 1600ms ease-in-out infinite; }
.reach .mr-wave i:nth-child(1) { animation-delay: -600ms; }
.reach .mr-wave i:nth-child(2) { animation-delay: -480ms; }
.reach .mr-wave i:nth-child(3) { animation-delay: -360ms; }
.reach .mr-wave i:nth-child(4) { animation-delay: -240ms; }
.reach .mr-wave i:nth-child(5) { animation-delay: -120ms; }
@keyframes home-reach-wave { 0%,70%,100% { transform: scaleY(.5); background: #ccc; } 35% { transform: scaleY(1); background: #36383a; } }
@media (max-width: 1050px) {
    .reach-scene { column-gap: 24px; grid-template-columns: minmax(160px,1fr) minmax(210px,1.1fr) minmax(190px,1fr); }
    .reach-target { padding: 10px; }
    .reach-agent-stack .mr-agent { padding-left: 12px; padding-right: 12px; }

}
@media (max-width: 760px) {
    .reach-scene { grid-template-columns: minmax(0,1fr) minmax(0,1fr); column-gap: 28px; row-gap: 32px; }
    .reach-direction { grid-column: 1 / -1; }
    .reach-workspaces { width: 100%; padding-top: 0; display: flex; align-items: center; gap: 25px; }
    .reach-workspaces .mr-browser-stack { flex: none; width: 222px; }
    .reach-sync-copy { margin: 0; max-width: 23ch; }
    .reach-label { margin-bottom: 16px; }
    .reach-agent-stack { padding-top: 15px; gap: 73px; }
    .reach-target { min-height: 147px; margin-bottom: 11px; padding: 9px; }
    .reach-target[data-endpoint='server'] { min-height: 163px; }
    .reach-target[data-endpoint='browser'] { min-height: 181px; }


}
@media (max-width: 570px) {
    .reach-workspaces { display: block; }
    .reach-sync-copy { margin: 23px 0 0 32px; max-width: 27ch; }
}
@media (max-width: 420px) {
    .reach-scene { column-gap: 18px; }
    .reach-agent-stack .mr-agent { min-height: 142px; padding: 10px 9px; }
    .reach-agent-stack { padding-top: 5px; gap: 38px; }
    .reach-agent-stack .mr-agent-heading { display: block; }
    .reach-agent-stack .mr-agent-heading strong { font-size: 10px; }
    .reach-agent-stack .mr-agent-host { display: block; margin-top: 3px; }
    .reach-agent-stack .mr-agent-note { font-size: 8px; min-height: 48px; }
    .reach-agent-inspect { right: 8px; bottom: 10px; }
    .reach-target { min-height: 143px; padding: 8px 6px; }
    .reach-target .mr-device-heading, .reach-browser-target-heading { display: block; margin-bottom: 7px; }
    .reach-target .mr-device-heading strong, .reach-browser-target-heading strong { font-size: 10px; }
    .reach-target .mr-connected { display: block; font-size: 7px; }
    .reach-target .mr-connected::before { display: inline-block; margin-right: 4px; }
    .reach-target .mr-screen { margin-left: 2px; margin-right: 2px; height: 68px; border-width: 2px; }
    .reach-target .mr-screen-bar { padding-left: 4px; font-size: 6px; }
    .reach-target .mr-file { font-size: 6px; padding: 0 2px; margin-left: 3px; margin-right: 3px; }
    .reach-target .mr-device-foot { font-size: 8px; }
    .reach-target .mr-window-body { padding: 6px; min-height: 104px; }
    .reach-target .mr-page-line { margin-top: 4px; margin-bottom: 4px; }
    .reach-target .mr-page-button { margin-top: 5px; }
    .reach-target .mr-server { padding: 5px; }
    .reach-target .mr-server-slot { font-size: 6px; padding: 0 3px; }
    .reach-target .mr-tab-strip { flex-wrap: wrap; gap: 2px; }
    .reach-target .mr-tab-strip span { font-size: 6px; padding: 1px 3px; }
    .reach-target[data-endpoint='server'] { min-height: 166px; }
    .reach-target[data-endpoint='browser'] { min-height: 183px; }


}
@media (prefers-reduced-motion: reduce) {
    .reach .mr-wave i { animation: none; }
    .reach-agent-stack .mr-agent, .reach-target { transition: none; }
}
