/* Small business web development — site-plan tree + ownership keys */
.sb-arch { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.sb-arch .section-head { margin-bottom: 0; }
.sb-arch-note { margin-top: 18px; font-size: 12.5px; }
.sb-tree { position: relative; padding: clamp(20px, 3vw, 32px); border-radius: var(--r-lg); border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(14, 24, 64, 0.6), rgba(7, 13, 36, 0.6)); }
.sb-node { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); background: rgba(5, 10, 28, 0.6); font-size: 13.5px; color: var(--text); }
.sb-node .mono { color: #b9c8ff; }
.sb-node em { font-style: normal; font-size: 12px; color: var(--dim); }
.sb-root { display: inline-flex; font-weight: 600; border-color: rgba(var(--accent-rgb), 0.6); background: rgba(var(--accent-rgb), 0.14); }
.sb-root .mono { color: var(--accent); }
.sb-branch { position: relative; margin: 10px 0 0 18px; padding-left: 22px; border-left: 1px dashed var(--line-2); display: grid; gap: 18px; }
.sb-group { position: relative; display: grid; gap: 6px; }
.sb-group::before { content: ""; position: absolute; left: -22px; top: 9px; width: 16px; border-top: 1px dashed var(--line-2); }
.sb-label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.sb-node.is-real { border-color: rgba(87, 242, 176, 0.45); }
.sb-node.is-real em { color: var(--mint); }
.sb-node.is-skip { border-style: dashed; opacity: 0.7; }
.sb-node.is-skip .mono { color: var(--dim); text-decoration: line-through; text-decoration-color: rgba(255, 111, 134, 0.7); }
.sb-node.is-skip em { color: var(--rose); }
@media (max-width: 900px) { .sb-arch { grid-template-columns: 1fr; } }

.sb-keys { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.sb-keys li { display: grid; justify-items: center; gap: 6px; padding: 26px 14px 22px; text-align: center; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); }
.sb-keys strong { font-size: 15.5px; letter-spacing: -0.01em; }
.sb-keys em { font-style: normal; font-size: 12.5px; color: var(--muted); }
.sb-key { position: relative; width: 44px; height: 44px; margin-bottom: 8px; border-radius: 50%; border: 1.5px solid var(--line-2); transition: border-color 0.6s var(--ease), box-shadow 0.6s var(--ease), background 0.6s; }
.sb-key::before { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -10px 0 0 -6px; border-radius: 50%; border: 2px solid var(--muted); transition: border-color 0.6s; }
.sb-key::after { content: ""; position: absolute; left: 50%; top: 50%; width: 2px; height: 11px; margin: 1px 0 0 -1px; border-radius: 1px; background: var(--muted); transition: background 0.6s; }
html.js .sb-keys li .sb-key { transform: rotate(-90deg); transition: transform 0.9s var(--ease), border-color 0.6s, box-shadow 0.6s, background 0.6s; transition-delay: calc(var(--d, 0s) + 0.3s); }
html.js .sb-keys li.is-in .sb-key, html:not(.js) .sb-key { transform: none; border-color: var(--mint); background: rgba(87, 242, 176, 0.1); box-shadow: 0 0 18px rgba(87, 242, 176, 0.3); }
.sb-keys li.is-in .sb-key::before { border-color: var(--mint); }
.sb-keys li.is-in .sb-key::after { background: var(--mint); }
@media (max-width: 1000px) { .sb-keys { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .sb-keys { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- day theme ---------- */
html[data-theme="light"] .sb-tree { background: #fff; box-shadow: 0 18px 44px -30px rgba(20, 40, 110, 0.35); }
html[data-theme="light"] .sb-node { background: var(--bg); }
html[data-theme="light"] .sb-node .mono { color: #2f4aa8; }
html[data-theme="light"] .sb-root { background: rgba(var(--accent-rgb), 0.08); }
html[data-theme="light"] .sb-root .mono { color: var(--accent); }
html[data-theme="light"] .sb-node.is-real { border-color: rgba(11, 149, 102, 0.45); }
html[data-theme="light"] .sb-node.is-skip .mono { color: var(--dim); }
html[data-theme="light"] .sb-keys li { background: #fff; box-shadow: 0 12px 30px -24px rgba(20, 40, 110, 0.35); }
html[data-theme="light"] .sb-keys li.is-in .sb-key, html[data-theme="light"]:not(.js) .sb-key { background: rgba(11, 149, 102, 0.08); box-shadow: 0 0 14px rgba(11, 149, 102, 0.25); }
