/* Static client device wall. The stage alone owns the intentional edge crop. */
.deck { margin-top: 40px; display: flex; justify-content: center; gap: var(--card-gap); }
.card {
  flex: 0 0 var(--card-w); height: var(--card-h); border-radius: var(--r-card);
  overflow: hidden; display: flex; flex-direction: column; text-align: left;
  background: var(--bg); color: var(--text);
  box-shadow: var(--shadow-card),inset 0 0 0 1px var(--white-40);
  transition: transform .35s ease;
}
.card:hover { transform: translateY(-6px); }
.card--blue {
  background: radial-gradient(120% 55% at 18% 0%,var(--white-18),var(--clear) 60%),linear-gradient(165deg,var(--azure),var(--accent) 50%,var(--sapphire));
  color: var(--bg); box-shadow: var(--shadow-card),inset 0 0 0 1px var(--white-28);
}
.card--white { background: var(--bg); color: var(--text); }
.card--gray { background: var(--bg-panel); color: var(--text); }
.card-head { display: flex; align-items: center; gap: 10px; height: 58px; padding-inline: 22px; font-family: var(--font-display); font-size: 16px; font-weight: var(--weight-medium); letter-spacing: -.01em; flex: 0 0 auto; }
.card-head svg { width: 20px; height: 20px; }
.card--white .card-head svg,.card--gray .card-head svg { color: var(--accent); }
.card--edge-l .card-head { justify-content: flex-end; }
.win { margin-inline: 14px; flex: 1; min-width: 0; display: flex; flex-direction: column; border-radius: var(--r-win) var(--r-win) 0 0; overflow: hidden; background: var(--bg); color: var(--text); box-shadow: var(--shadow-win); }
.card--white .win { background: var(--bg-panel); color: var(--text); box-shadow: inset 0 0 0 1px var(--border); }
.win-bar { min-height: 32px; flex: 0 0 32px; display: flex; align-items: center; gap: 6px; padding-inline: 12px; box-shadow: inset 0 -1px 0 var(--border); background: var(--bg); color: var(--text-muted); }
.card--white .win-bar { background: var(--bg-panel-2); color: var(--text-muted); }
.win-bar i { width: 9px; height: 9px; border-radius: var(--r-circle); flex: 0 0 9px; }
.d-r { background: var(--error); }
.d-y { background: var(--warn); }
.d-g { background: var(--success); }
.win-title { flex: 1; text-align: center; margin-right: 39px; font-size: 11.5px; color: var(--text-muted); }
.win-body { position: relative; flex: 1; padding: 12px; color: var(--text); font-size: 13px; min-width: 0; }
.list-head { display: flex; justify-content: space-between; padding: 0 10px 6px; font-size: 11px; color: var(--text-muted); }
.srv { display: flex; flex-direction: column; gap: 4px; }
.srv-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 34px; padding: 6px 10px; border-radius: var(--r-xs); background: var(--bg); color: var(--text); }
.srv-row.is-sel { background: var(--accent-wash-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--accent-ring); }
.srv-meta { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); }
.tag { display: inline-flex; align-items: center; max-width: 100%; min-height: 20px; padding: 2px 8px; border-radius: var(--r-pill); font-family: var(--font-mono); font-size: 11px; font-weight: var(--weight-medium); color: var(--accent); background: var(--accent-wash); overflow-wrap: anywhere; }
.srv-row.is-sel .tag { background: var(--accent); color: var(--bg); }
.ctx { position: absolute; right: 8px; top: 184px; width: 146px; padding: 5px; margin: 0; list-style: none; border-radius: var(--r-sm); background: var(--bg); color: var(--text); box-shadow: var(--shadow-pop),inset 0 0 0 1px var(--border); }
.ctx li { min-height: 30px; display: flex; align-items: center; padding: 5px 10px; border-radius: var(--r-xs); font-size: 12.5px; }
.ctx li.is-on { background: var(--accent-wash-2); color: var(--accent); }
.field-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 2px 4px 10px; }
.field-head b { font-weight: var(--weight-medium); font-size: 13px; }
.mono-s { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); overflow-wrap: anywhere; }
.radios { display: flex; flex-direction: column; gap: 6px; }
.radio { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border-radius: var(--r-sm); background: var(--bg-panel); color: var(--text); }
.radio.is-on { background: var(--accent-wash); color: var(--text); box-shadow: inset 0 0 0 1px var(--accent-ring); }
.radio-dot { flex: 0 0 16px; width: 16px; height: 16px; margin-top: 1px; border-radius: var(--r-circle); background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--border); position: relative; }
.radio.is-on .radio-dot { box-shadow: inset 0 0 0 1.5px var(--accent); }
.radio.is-on .radio-dot::after { content: ""; position: absolute; inset: 4px; border-radius: var(--r-circle); background: var(--accent); }
.radio-name { display: block; font-family: var(--font-mono); font-size: 12.5px; font-weight: var(--weight-medium); color: var(--text); }
.radio.is-on .radio-name { color: var(--accent); }
.radio-desc { display: block; font-size: 11.5px; color: var(--text-muted); line-height: 1.45; margin-top: 2px; }
.sel-row { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding-inline: 4px; }
.select { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 4px 10px; border-radius: var(--r-xs); font-family: var(--font-mono); font-size: 11.5px; color: var(--text); background: var(--bg-panel); box-shadow: inset 0 0 0 1px var(--border); }
.menubar { display: flex; gap: 4px; padding-bottom: 8px; }
.menubar span { min-height: 26px; display: inline-flex; align-items: center; padding: 4px 10px; border-radius: var(--r-xs); font-size: 12.5px; color: var(--text-muted); }
.menubar .is-open { background: var(--bg); color: var(--text); box-shadow: inset 0 0 0 1px var(--border); }
.drop { padding: 5px; list-style: none; margin: 0; border-radius: var(--r-sm); background: var(--bg); color: var(--text); box-shadow: var(--shadow-pop),inset 0 0 0 1px var(--border); }
.drop li { display: flex; align-items: center; gap: 9px; min-height: 32px; padding: 6px 10px; border-radius: var(--r-xs); font-size: 12.5px; }
.drop li.is-on { background: var(--accent-wash-2); color: var(--accent); }
.form { margin-top: 12px; padding: 12px; border-radius: var(--r-sm); background: var(--bg); color: var(--text); box-shadow: inset 0 0 0 1px var(--border); }
.form-label { display: block; font-size: 11.5px; color: var(--text-muted); margin-bottom: 6px; }
.input { display: flex; align-items: center; min-height: 34px; padding: 7px 10px; border-radius: var(--r-xs); background: var(--bg-panel); color: var(--text-muted); box-shadow: inset 0 0 0 1px var(--border); font-family: var(--font-mono); font-size: 11.5px; overflow-wrap: anywhere; }
.check { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 12.5px; }
.check i { width: 15px; height: 15px; flex-shrink: 0; border-radius: var(--r-check); background: var(--accent); color: var(--bg); display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-style: normal; }
.phone { margin: 2px auto 0; width: 232px; flex: 1; padding: 8px 8px 0; border-radius: var(--r-phone) var(--r-phone) 0 0; background: var(--night); color: var(--bg); box-shadow: var(--shadow-win),inset 0 0 0 1px var(--white-18); display: flex; }
.screen { flex: 1; border-radius: var(--r-screen) var(--r-screen) 0 0; background: var(--bg); color: var(--text); padding: 8px 14px 0; overflow: hidden; }
.notch { width: 56px; height: 8px; margin: 0 auto 10px; border-radius: var(--r-pill); background: var(--bg-panel-2); }
.appbar { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; box-shadow: inset 0 -1px 0 var(--border); }
.appbar b { font-weight: var(--weight-medium); font-size: 14px; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-block: 11px; box-shadow: inset 0 -1px 0 var(--border); }
.set-row b { display: block; font-weight: var(--weight-medium); font-size: 13px; }
.set-row small { display: block; font-size: 11px; color: var(--text-muted); margin-top: 1px; }
.switch { position: relative; flex: 0 0 34px; width: 34px; height: 20px; border-radius: var(--r-pill); background: var(--bg-panel-2); box-shadow: inset 0 0 0 1px var(--border); }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: var(--r-circle); background: var(--bg); box-shadow: 0 1px 2px var(--ink-10); }
.switch.is-on { background: var(--accent); box-shadow: none; }
.switch.is-on::after { left: 17px; }
.seg-label { display: block; font-size: 11px; color: var(--text-muted); margin: 11px 0 6px; }
.seg { display: flex; padding: 3px; border-radius: var(--r-pill); background: var(--bg-panel-2); color: var(--text-muted); }
.seg span { flex: 1; min-height: 26px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r-pill); font-size: 12px; }
.seg span.is-on { background: var(--bg); color: var(--accent); font-weight: var(--weight-medium); box-shadow: 0 1px 2px var(--ink-10); }
.code { padding: 12px 0; font-family: var(--font-mono); font-size: 12px; line-height: 19px; color: var(--text); background: var(--bg); border-radius: 0; }
.code code { font-size: inherit; }
.ln { display: block; white-space: pre; padding-inline: 14px; }
.ln.is-hot { background: var(--accent-wash); color: var(--text); }
.code .k,.code .n { color: var(--accent-dark); }
.code .s { color: var(--accent); }
.code .p { color: var(--text-muted); }

/* Tabs stay readable without script; tabs.js owns hidden and selected state. */
.tab-set { min-width: 0; }
.tab-list,[role="tablist"] { display: flex; align-items: center; gap: 8px; overflow-x: auto; max-width: 100%; padding: 4px; scrollbar-width: thin; }
.tab-list [role="tab"] { flex: 0 0 auto; min-height: 44px; padding: 10px 20px; border-radius: var(--r-pill); background: var(--bg-panel); color: var(--text-muted); text-align: left; }
.tab-list [role="tab"]:hover { background: var(--bg-panel-2); color: var(--text); }
.tab-list [role="tab"][aria-selected="true"] { background: var(--accent); color: var(--bg); }
.tab-panel { min-width: 0; margin-top: 24px; }
.feature-tabs { display: grid; grid-template-columns: 270px minmax(0,1fr); gap: 36px; }
.feature-tabs > * { min-width: 0; }
.feature-tabs .tab-list { flex-direction: column; align-items: stretch; align-self: start; padding: 0; gap: 8px; }
.feature-tabs .tab-list [role="tab"] { position: relative; padding: 20px 24px; border-radius: var(--r-sm); background: var(--bg); color: var(--text-muted); font-size: 17px; }
.feature-tabs .tab-list [role="tab"][aria-selected="true"] { background: var(--bg-panel); color: var(--accent); }
.feature-tabs .tab-list [role="tab"][aria-selected="true"]::before { content: ""; position: absolute; inset: 16px auto 16px 0; width: 3px; border-radius: var(--r-pill); background: var(--accent); }
.feature-tabs .tab-panel { margin-top: 0; }
.feature-cabin { border-radius: var(--r-cabin); padding: 48px; background: linear-gradient(155deg,var(--accent-dark),var(--accent)); color: var(--bg); }
.feature-cabin .win { margin: 0 auto; width: min(100%,480px); min-height: 280px; border-radius: var(--r-win); }
.feature-caption { margin: 28px auto 0; max-width: 580px; font-size: 15px; line-height: 1.9; color: var(--bg); }
.toc { position: sticky; top: 0; z-index: 10; display: flex; flex-wrap: wrap; gap: 8px; padding: 12px; max-width: 100%; overflow-x: visible; border-radius: var(--r-win); background: var(--bg-panel); color: var(--text); }
.toc a { display: inline-flex; align-items: center; min-height: 44px; padding: 9px 16px; flex-shrink: 0; border-radius: var(--r-pill); }
.toc a:hover,.toc a[aria-current] { background: var(--bg); color: var(--accent); }
.faq-item { border-radius: var(--r-card); background: var(--bg-panel); color: var(--text); margin-bottom: 12px; }
.faq-item summary { position: relative; padding: 24px 60px 24px 24px; cursor: pointer; list-style: none; font-size: 17px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 24px; top: 24px; color: var(--accent); }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding: 0 24px 24px; color: var(--text-muted); line-height: 1.85; }
.term-card,.client-card,.article-card { min-width: 0; padding: 28px; border-radius: var(--r-card); background: var(--bg-panel); color: var(--text); }
.term-card h3,.client-card h3,.article-card h3 { margin-block: 12px; }
.term-card p,.client-card p,.article-card p { color: var(--text-muted); line-height: 1.8; }
.term-card dt { font-family: var(--font-mono); font-size: 22px; margin-bottom: 12px; }
.term-card dd { margin: 0; color: var(--text-muted); line-height: 1.8; }
.client-card { background: var(--bg-panel); color: var(--text); }
.client-card--lead { background: var(--bg-panel-2); color: var(--text); }
.client-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 16px; }
.app-icon { width: 56px; height: 56px; flex-shrink: 0; }
.client-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.status-badge { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 5px 12px; border-radius: var(--r-pill); background: var(--bg-panel-2); color: var(--text-muted); font-size: 12px; overflow-wrap: anywhere; }
.status-badge--first { background: var(--accent); color: var(--bg); }
.status-badge--recommended { background: var(--accent-wash-2); color: var(--accent-dark); }
.status-badge--retired { background: var(--bg-panel-2); color: var(--text-muted); }
.status-badge--retired::before { content: ""; flex: 0 0 6px; height: 6px; border-radius: var(--r-circle); background: var(--warn); }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--text-muted); font-size: 12px; }
.article-card h3 { font-size: 21px; }
.article-card a:hover { color: var(--accent); }
.article-link { display: inline-flex; margin-top: 20px; color: var(--accent); font-size: 14px; }
.callout { margin-block: 24px; padding: 24px 28px; border-radius: var(--r-card); background: var(--bg-panel); color: var(--text); border-left: 3px solid var(--accent); line-height: 1.85; }
.callout strong { color: var(--accent-dark); }
.callout--warn { border-left-color: var(--warn); }
.table-scroll { max-width: 100%; min-width: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; background: var(--bg); color: var(--text); }
.data-table :is(th,td),.prose table :is(th,td),.article-body table :is(th,td) { min-width: 7em; padding: 16px 20px; border-bottom: 1px solid var(--border); overflow-wrap: normal; word-break: normal; vertical-align: top; }
.data-table th,.prose table th,.article-body table th { background: var(--bg-panel); color: var(--text); font-weight: var(--weight-medium); }
.prose table,.article-body table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; min-width: 0; border-collapse: collapse; background: var(--bg); color: var(--text); margin-block: 24px; }
.dl-fab { position: fixed; right: 24px; bottom: 24px; z-index: 30; display: flex; align-items: center; gap: 12px; max-width: calc(100% - 32px); padding: 14px 22px; border-radius: var(--r-pill); background: var(--accent); color: var(--bg); box-shadow: var(--shadow-pop); }
.dl-fab svg { width: 22px; height: 22px; }
.dl-fab strong { display: block; font-size: 14px; font-weight: var(--weight-medium); }
.dl-fab small { display: block; font-size: 11px; color: var(--white-90); }
.dl-fab:hover { background: var(--accent-dark); color: var(--bg); }
.article-download { margin-top: 48px; padding: 32px; border-radius: var(--r-shell); background: var(--bg-panel); color: var(--text); }
.article-download p { margin-top: 12px; color: var(--text-muted); }
.article-download .btn { margin-top: 20px; }
.preview-section { padding-top: 64px; padding-bottom: 64px; }
.preview-section h2 { margin-bottom: 28px; }
.preview-section h3 { margin-bottom: 16px; }
.preview-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.swatch-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 16px; }
.swatch { min-width: 0; font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); }
.swatch::before { content: ""; display: block; height: 64px; margin-bottom: 8px; border-radius: var(--r-sm); box-shadow: inset 0 0 0 1px var(--border); background: var(--swatch); }
.sw-bg { --swatch: var(--bg); }
.sw-panel { --swatch: var(--bg-panel); }
.sw-panel2 { --swatch: var(--bg-panel-2); }
.sw-border { --swatch: var(--border); }
.sw-accent { --swatch: var(--accent); }
.sw-dark { --swatch: var(--accent-dark); }
.sw-text { --swatch: var(--text); }
.sw-muted { --swatch: var(--text-muted); }
.sw-success { --swatch: var(--success); }
.sw-warn { --swatch: var(--warn); }
.sw-error { --swatch: var(--error); }
.sw-night { --swatch: var(--night); }
.sw-sapphire { --swatch: var(--sapphire); }
.sw-azure { --swatch: var(--azure); }
.sw-haze { --swatch: var(--haze); }
.sw-mist { --swatch: var(--rose-mist); }
.sw-rose { --swatch: var(--rose); }
.sw-dot { --swatch: var(--dot-soft); }
.sw-w90 { --swatch: var(--white-90); }
.sw-w78 { --swatch: var(--white-78); }
.sw-w64 { --swatch: var(--white-64); }
.sw-w40 { --swatch: var(--white-40); }
.sw-w28 { --swatch: var(--white-28); }
.sw-w18 { --swatch: var(--white-18); }
.sw-w10 { --swatch: var(--white-10); }
.sw-w06 { --swatch: var(--white-06); }
.sw-glass { --swatch: var(--haze-glass); }
.sw-glass-hover { --swatch: var(--haze-glass-hover); }
.sw-wash { --swatch: var(--accent-wash); }
.sw-wash2 { --swatch: var(--accent-wash-2); }
.sw-ring { --swatch: var(--accent-ring); }
.sw-ink6 { --swatch: var(--ink-06); }
.sw-ink10 { --swatch: var(--ink-10); }
.sw-shadow-deep { --swatch: var(--shadow-deep); }
.sw-shadow-night { --swatch: var(--shadow-night); }
.sw-fog { --swatch: var(--rose-fog); }
.sw-fog-soft { --swatch: var(--rose-fog-soft); }
.sw-clear { --swatch: var(--clear); }
@media (max-width: 960px) {
  .feature-tabs { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .feature-tabs .tab-list { flex-direction: row; overflow-x: auto; }
  .feature-tabs .tab-list [role="tab"] { padding: 12px 18px; border-radius: var(--r-pill); font-size: 14px; }
  .feature-tabs .tab-list [role="tab"][aria-selected="true"] { background: var(--accent); color: var(--bg); }
  .feature-tabs .tab-list [role="tab"][aria-selected="true"]::before { display: none; }
  .feature-cabin { padding: 28px; }
  .swatch-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .feature-cabin { padding: 20px 16px; }
  .feature-cabin .win-body { padding: 10px; }
  .feature-caption { font-size: 14px; }
  .term-card,.client-card,.article-card,.article-download { padding: 24px; }
  .dl-fab { right: 16px; bottom: 16px; padding: 12px 18px; }
  .dl-fab small { display: none; }
  .swatch-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .callout { padding: 20px; }
  .faq-item summary { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .card:hover { transform: none; }
}