/* Private connection diagram: AI agent <-> (MCP, local) <-> Mac app <-> your iCloud <-> iPhone, with third-party clouds crossed out. Each site sets the --sd-* tokens; layout and motion are shared. */ .sd { --sd-fg: var(--text); --sd-muted: var(--muted); --sd-line: var(--line-2); --sd-surface: color-mix(in srgb, var(--surface) 72%, var(--bg)); --sd-frame: #9fb0c2; --sd-screen: #0a0f15; --sd-screen-lit: #17303f; --sd-link: var(--cyan); --sd-bad: #ff5f57; --sd-rim: rgba(160, 232, 245, 0.7); --sd-icon-glow: drop-shadow(0 0 5px color-mix(in srgb, var(--cyan) 85%, transparent)) drop-shadow(0 0 14px color-mix(in srgb, var(--cyan) 45%, transparent)); --sd-mono: var(--mono); margin: 18px 0 0; padding: 44px 40px 34px; border: 1px solid var(--sd-line); border-radius: 22px; background: var(--sd-surface); color: var(--sd-fg); text-align: center; } .sd-head { max-width: 660px; margin: 0 auto 50px; } .sd-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 5px 13px; border: 1px solid var(--sd-line); border-radius: 999px; font-family: var(--sd-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sd-muted); } .sd-head h3 { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.2; letter-spacing: -0.02em; font-weight: 600; text-wrap: balance; } .sd-head p { margin-top: 12px; color: var(--sd-muted); font-size: 15px; line-height: 1.6; text-wrap: pretty; } /* One chain, left to right: five tracks (node, link, node, link, node). */ .sd-diagram { display: grid; grid-template-columns: minmax(0, 1fr) minmax(40px, 0.56fr) minmax(0, 1fr) minmax(40px, 0.56fr) minmax(0, 1fr); align-items: center; max-width: 980px; margin: 0 auto; } .sd-p1 { --p: 1; } .sd-p2 { --p: 2; } .sd-p3 { --p: 3; } .sd-p4 { --p: 4; } .sd-p5 { --p: 5; } .sd-p6 { --p: 6; } .sd-p7 { --p: 7; } .sd-node, .sd-link { grid-column: var(--p); grid-row: 2; } .sd-node { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; } .sd-art { display: grid; place-items: center; height: 108px; margin-bottom: 10px; } .sd-art svg { display: block; height: 100%; width: auto; overflow: visible; } .sd-agent .sd-art svg { height: 86%; } .sd-node b { font-size: 15px; font-weight: 600; line-height: 1.3; } .sd-node span { font-family: var(--sd-mono); font-size: 11px; line-height: 1.45; letter-spacing: 0.02em; color: var(--sd-muted); } .sd-frame { fill: none; stroke: var(--sd-frame); stroke-width: 2.4; stroke-linejoin: round; } .sd-agent .sd-frame { fill: var(--sd-screen); } .sd-base, .sd-dot { fill: var(--sd-frame); } .sd-dot { opacity: 0.7; } .sd-rule { fill: none; stroke: var(--sd-frame); stroke-width: 2.2; stroke-linecap: round; opacity: 0.4; } .sd-prompt { fill: none; stroke: var(--sd-link); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; } .sd-cursor, .sd-spark { fill: var(--sd-link); } .sd-cursor { animation: sd-blink 1.3s steps(2, jump-none) infinite; } @keyframes sd-blink { to { opacity: 0.15; } } .sd-screen { fill: var(--sd-screen); } .sd-notch { fill: var(--sd-frame); opacity: 0.55; } /* The app icon: a rounded square like the real icon, with a rim and glow so it never sinks into the screen. */ .sd-app { filter: var(--sd-icon-glow); } .sd-app-rim { fill: none; stroke: var(--sd-rim); stroke-width: 0.9; } .sd-icloud .sd-art svg { height: 94%; filter: drop-shadow(0 10px 22px rgba(47, 134, 240, 0.35)); } /* The local zone: the agent and the Mac app talk over MCP without leaving the Mac. */ .sd-zone { grid-column: 1 / 4; grid-row: 2; align-self: stretch; position: relative; margin: -26px -4px -20px; border: 1.5px dashed color-mix(in srgb, var(--sd-link) 42%, var(--sd-line)); border-radius: 20px; background: color-mix(in srgb, var(--sd-link) 5%, transparent); pointer-events: none; } .sd-zone span { position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); padding: 3px 11px; border-radius: 999px; background: var(--sd-surface); font-family: var(--sd-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; color: color-mix(in srgb, var(--sd-link) 70%, var(--sd-fg)); } /* The return leg: the agent's phone app drives the agent on the Mac, which closes the chain into a loop. */ .sd-loop { --sd-loop-line: color-mix(in srgb, var(--sd-link) 60%, transparent); grid-column: 1 / 8; grid-row: 1; position: relative; z-index: 1; height: 58px; margin: 0 8.3% -2px; border: 2px dashed var(--sd-loop-line); border-bottom: 0; border-radius: 24px 24px 0 0; } .sd-loop::after { content: ''; position: absolute; left: -6px; bottom: -8px; border: 5px solid transparent; border-top: 9px solid var(--sd-link); border-bottom: 0; } .sd-loop-tag { position: absolute; z-index: 1; left: 50%; top: -1px; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px 6px 9px; border: 1.5px solid var(--sd-link); border-radius: 999px; background: var(--sd-surface); box-shadow: 0 0 0 4px var(--sd-surface), 0 0 14px color-mix(in srgb, var(--sd-link) 30%, transparent); font-family: var(--sd-mono); font-size: 10.5px; line-height: 1; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; } .sd-loop-tag svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; } .sd-loop-tag, .sd-loop-tag b { font-weight: 700; color: color-mix(in srgb, var(--sd-link) 80%, var(--sd-fg)); } .sd-loop-tag em { padding-left: 8px; border-left: 1px solid var(--sd-line); font-style: normal; font-weight: 500; color: var(--sd-muted); } .sd-agent-tile { fill: var(--sd-link); } .sd-agent-glyph { fill: #fff; } /* The return leg: each dot rides the whole path in one piece (phone side, long run, agent side), so there are no hand-offs to glitch. Each is a box the size of the path that moves by transform only, and its ::after is the dot. Dots fade in as they leave one device and fade out into the next. */ .sd-seg { position: absolute; inset: -1px -1px 0 -1px; pointer-events: none; } .sd-seg i { position: absolute; right: 100%; bottom: 100%; width: 100%; height: 100%; opacity: 0; animation-name: sd-loop-out; animation-duration: 9s; animation-timing-function: linear; animation-iteration-count: infinite; } .sd-seg i::after { content: ''; position: absolute; right: -4px; bottom: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--sd-link); box-shadow: 0 0 9px var(--sd-link); } /* A train of three goes phone to agent, then a train of three comes back. */ .sd-seg i:nth-child(n+4) { animation-name: sd-loop-back; } .sd-seg i:nth-child(2) { animation-delay: -8.4s; } .sd-seg i:nth-child(3) { animation-delay: -7.8s; } .sd-seg i:nth-child(4) { animation-delay: -4.5s; } .sd-seg i:nth-child(5) { animation-delay: -3.9s; } .sd-seg i:nth-child(6) { animation-delay: -3.3s; } @keyframes sd-loop-out { 0% { transform: translate(100%, 100%); opacity: 0; } 4% { transform: translate(100%, 0); } 9% { opacity: 1; } 41% { opacity: 1; } 46% { transform: translate(0, 0); } 50%, 100% { transform: translate(0, 100%); opacity: 0; } } @keyframes sd-loop-back { 0% { transform: translate(0, 100%); opacity: 0; } 4% { transform: translate(0, 0); } 9% { opacity: 1; } 41% { opacity: 1; } 46% { transform: translate(100%, 0); } 50%, 100% { transform: translate(100%, 100%); opacity: 0; } } /* The two-way link: a dashed track with dots running both directions and a label. */ .sd-link { position: relative; height: 2px; margin: 0 4px 46px; background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--sd-link) 55%, transparent) 0 6px, transparent 6px 12px); } .sd-link i { position: absolute; top: 0; right: 100%; width: 100%; height: 100%; opacity: 0; animation: sd-run 6s linear infinite; } .sd-link i::after { content: ''; position: absolute; right: -4.5px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: var(--sd-link); box-shadow: 0 0 10px var(--sd-link); } .sd-link i:nth-of-type(n+4) { animation-name: sd-run-back; } /* Three well-spaced pulses go in, then three come back out, so traffic reads as in, out, in, out. */ .sd-link i:nth-of-type(2) { animation-delay: -5.3s; } .sd-link i:nth-of-type(3) { animation-delay: -4.6s; } .sd-link i:nth-of-type(4) { animation-delay: -3s; } .sd-link i:nth-of-type(5) { animation-delay: -2.3s; } .sd-link i:nth-of-type(6) { animation-delay: -1.6s; } .sd-tag { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); font-family: var(--sd-mono); font-size: 10.5px; line-height: 1; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; color: var(--sd-muted); } /* MCP is the named hop, so its label sits on the line like a connector. */ .sd-link-mcp .sd-tag { z-index: 1; bottom: auto; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px 6px 8px; font-size: 11.5px; box-shadow: 0 0 14px color-mix(in srgb, var(--sd-link) 35%, transparent); border: 1.5px solid var(--sd-link); border-radius: 999px; background: var(--sd-surface); font-weight: 700; color: color-mix(in srgb, var(--sd-link) 80%, var(--sd-fg)); } .sd-tag svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; } @keyframes sd-run { 0% { transform: translateX(0); opacity: 0; } 6% { opacity: 1; } 20% { opacity: 1; } 26.67%, 100% { transform: translateX(100%); opacity: 0; } } @keyframes sd-run-back { 0% { transform: translateX(100%); opacity: 0; } 6% { opacity: 1; } 20% { opacity: 1; } 26.67%, 100% { transform: translateX(0); opacity: 0; } } /* The crossed-out third-party cloud, hanging under iCloud with a cut line. */ .sd-block { grid-column: 4 / 7; grid-row: 3; justify-self: center; position: relative; display: flex; align-items: center; gap: 16px; width: max-content; max-width: none; margin-top: 62px; padding: 12px 26px 12px 14px; border: 1px solid color-mix(in srgb, var(--sd-bad) 45%, transparent); border-radius: 999px; background: color-mix(in srgb, var(--sd-bad) 9%, transparent); text-align: left; } .sd-block::before { content: ''; position: absolute; left: 50%; bottom: 100%; height: 44px; border-left: 2px dashed color-mix(in srgb, var(--sd-bad) 60%, transparent); } .sd-block::after { content: '\00d7'; position: absolute; left: 50%; bottom: calc(100% + 12px); transform: translateX(-50%); width: 20px; height: 20px; border-radius: 50%; background: var(--sd-bad); color: #fff; font: 700 15px/20px var(--sd-mono); text-align: center; } .sd-block svg { flex: none; width: 72px; height: 72px; overflow: visible; } .sd-hood { fill: #2a0f0d; } .sd-face { fill: #0d0403; } .sd-eyes { fill: none; stroke: #fff; stroke-width: 1.15; stroke-linecap: round; } .sd-ban { fill: none; stroke: var(--sd-bad); stroke-width: 3.4; stroke-linecap: round; } .sd-slash { stroke-width: 2.8; } .sd-block b { display: block; font-size: 15px; font-weight: 600; color: var(--sd-bad); } .sd-block span { display: block; margin-top: 2px; font-family: var(--sd-mono); font-size: 11px; color: var(--sd-muted); } .sd-nos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin: 30px 0 0; padding: 0; list-style: none; } .sd-nos li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 15px; border: 1px solid var(--sd-line); border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--sd-fg); } .sd-nos li::before { content: ''; width: 14px; height: 14px; border-radius: 50%; background: linear-gradient(45deg, transparent 44%, #fff 44% 56%, transparent 56%), linear-gradient(-45deg, transparent 44%, #fff 44% 56%, transparent 56%), var(--sd-bad); } .sd-nos li.sd-nos-lead { padding: 0 2px 0 0; border: 0; background: none; font-family: var(--sd-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sd-muted); } .sd-nos li.sd-nos-lead::before { content: none; } .sd-note { max-width: 640px; margin: 18px auto 0; font-size: 12.5px; line-height: 1.55; color: var(--sd-muted); text-wrap: pretty; } /* Stacked chain for narrow screens: the same five steps, top to bottom. */ @media (max-width: 880px) { .sd { padding: 34px 20px 28px; border-radius: 18px; } .sd-head { margin-bottom: 50px; } .sd-diagram { grid-template-columns: minmax(0, 1fr); max-width: 300px; } .sd-node, .sd-link { grid-column: 1; grid-row: var(--p); } /* The return leg becomes a rail down the left side, from the phone back up to the agent. */ .sd-loop { grid-column: 1; grid-row: 1 / 8; justify-self: start; align-self: stretch; width: calc(50% - 66px); height: auto; margin: 46px 0 106px; border: 2px dashed var(--sd-loop-line); border-right: 0; border-radius: 20px 0 0 20px; } .sd-loop::before { content: ''; position: absolute; left: 100%; bottom: -2px; width: 30px; border-top: 2px dashed var(--sd-loop-line); } .sd-loop::after { left: 100%; top: -6px; bottom: auto; border: 5px solid transparent; border-left: 9px solid var(--sd-link); border-right: 0; } .sd-seg { inset: -1px -30px -1px -1px; } .sd-seg i { animation-name: sd-rail-out; } .sd-seg i:nth-child(n+4) { animation-name: sd-rail-back; } .sd-loop-tag { left: -1px; top: 50%; transform: translate(-50%, -50%) rotate(-90deg); } .sd-art { height: 92px; } .sd-zone { grid-column: 1; grid-row: 1 / 4; margin: -24px 16px -20px; } .sd-link { justify-self: center; width: 2px; height: 52px; margin: 14px 0; background: repeating-linear-gradient(180deg, color-mix(in srgb, var(--sd-link) 55%, transparent) 0 6px, transparent 6px 12px); } .sd-link i { top: auto; right: auto; left: 0; bottom: 100%; animation-name: sd-run-v; } .sd-link i::after { top: auto; right: auto; bottom: -4.5px; left: 50%; margin: 0 0 0 -4.5px; } .sd-link i:nth-of-type(n+4) { animation-name: sd-run-v-back; } .sd-tag { left: 16px; bottom: auto; top: 50%; transform: translateY(-50%); } .sd-link-mcp .sd-tag { left: 50%; transform: translate(-50%, -50%); } .sd-link-mcp { height: 104px; margin-top: 26px; } .sd-block { grid-column: 1; grid-row: 8; max-width: 100%; width: auto; margin-top: 40px; padding-right: 20px; } /* Stacked, the blocked cloud stands on its own instead of hanging off the last device. */ .sd-block::before, .sd-block::after { content: none; } .sd-nos li.sd-nos-lead { flex-basis: 100%; justify-content: center; padding: 0; } } @keyframes sd-rail-out { 0% { transform: translate(100%, 100%); opacity: 0; } 6% { transform: translate(0, 100%); } 11% { opacity: 1; } 39% { opacity: 1; } 44% { transform: translate(0, 0); } 50%, 100% { transform: translate(100%, 0); opacity: 0; } } @keyframes sd-rail-back { 0% { transform: translate(100%, 0); opacity: 0; } 6% { transform: translate(0, 0); } 11% { opacity: 1; } 39% { opacity: 1; } 44% { transform: translate(0, 100%); } 50%, 100% { transform: translate(100%, 100%); opacity: 0; } } @keyframes sd-run-v { 0% { transform: translateY(0); opacity: 0; } 6% { opacity: 1; } 20% { opacity: 1; } 26.67%, 100% { transform: translateY(100%); opacity: 0; } } @keyframes sd-run-v-back { 0% { transform: translateY(100%); opacity: 0; } 6% { opacity: 1; } 20% { opacity: 1; } 26.67%, 100% { transform: translateY(0); opacity: 0; } } @media (prefers-reduced-motion: reduce) { .sd-link i, .sd-seg i { animation: none; opacity: 0; } .sd-cursor { animation: none; } } /* Inkspring tokens: warm paper, ink, terracotta. */ .sd.sd-ink { --sd-fg: var(--ink); --sd-muted: var(--ink-3); --sd-line: var(--ink-line); --sd-surface: var(--paper-2); --sd-frame: var(--ink-3); --sd-screen: var(--ink); --sd-link: var(--accent); --sd-bad: #c4362c; --sd-rim: rgba(255, 255, 255, 0.55); --sd-icon-glow: drop-shadow(0 0 6px rgba(245, 242, 236, 0.4)); margin: 28px 0 0; border-radius: 20px; padding: 56px 48px 40px; } .sd-ink .sd-head h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.05; letter-spacing: -0.03em; } .sd-ink .sd-head h3 em { font-style: italic; color: var(--accent); } .sd-ink .sd-head p { font-family: var(--serif); font-size: 18px; line-height: 1.55; color: var(--ink-2); } .sd-ink .sd-eyebrow { border-color: var(--ink-line); } .sd-ink .sd-nos li { font-size: 12px; background: var(--paper); } .sd-ink .sd-nos li.sd-nos-lead { background: none; font-size: 11px; } .sd-ink .sd-block { background: color-mix(in srgb, var(--sd-bad) 7%, var(--paper)); } .sd-ink .sd-note { font-family: var(--serif); font-size: 14.5px; color: var(--ink-3); } @media (max-width: 880px) { .sd.sd-ink { padding: 38px 20px 30px; border-radius: 16px; } .sd-ink .sd-head p { font-size: 16px; } }