/* Demo hub page */
.d-hero { padding: 72px 0 36px; max-width: 880px; margin-left: max(24px, calc((100% - var(--maxw)) / 2)); }
.d-hero h1 { font-size: clamp(38px, 5.2vw, 64px); margin: 16px 0 20px; }
.d-hero .lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 64ch; }
.d-hero .safe { display: flex; gap: 12px; align-items: flex-start; margin-top: 22px; color: var(--muted); font-size: 14.5px; max-width: 62ch; }
.d-hero .safe svg { flex: none; width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }

/* One row: device tabs centred, Auto / Light / Dark switch on the right */
.stage-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin-bottom: 36px; }
.stage-bar .bar-theme { justify-self: end; }
@media (max-width: 1060px) {
  .stage-bar { grid-template-columns: 1fr; justify-items: center; gap: 14px; }
  .stage-bar .bar-gap { display: none; }
  .stage-bar .bar-theme { justify-self: center; }
}

.tabs { display: flex; gap: 6px; overflow-x: auto; padding: 5px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); width: max-content; max-width: 100%; margin: 0; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { appearance: none; border: 0; background: transparent; color: var(--ink-2); padding: 11px 22px; border-radius: 999px; font: 600 14.5px/1 var(--font-head); cursor: pointer; white-space: nowrap; transition: .2s; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--navy); color: var(--cream); box-shadow: 0 8px 18px -8px rgba(10,34,61,.6); }
:root[data-theme="dark"] .tabs button[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); }

.stage { min-height: 520px; }
/* Fig: a device + its caption */
.fig { margin: 0; position: relative; }
.fig figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 14px; padding: 0 4px; }
.fig figcaption b { font: 600 17px/1.2 var(--font-head); }
.fig figcaption span { color: var(--muted); font-size: 14px; }
.fig .expand { position: absolute; top: 8px; right: 8px; z-index: 5; appearance: none; border: 1px solid var(--line); background: var(--glass); color: var(--ink); width: 38px; height: 38px; border-radius: 12px; cursor: pointer; display: grid; place-items: center; opacity: 0; transition: opacity .2s; backdrop-filter: blur(8px); }
.fig:hover .expand, .fig:focus-within .expand { opacity: 1; }
.fig .expand svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: none) { .fig .expand { opacity: 1; } }

.all-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 34px 44px; align-items: start; }
.all-left { display: grid; gap: 34px; }
.all-left .fig.tablet { width: 86%; justify-self: start; }
.all-right { display: grid; grid-template-columns: 1fr .82fr; gap: 28px; align-items: start; }
@media (max-width: 900px) { .all-grid { grid-template-columns: 1fr; } .all-left .fig.tablet { width: 100%; } .all-right { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .all-right { grid-template-columns: 1fr; } .all-right .fig { max-width: 340px; margin-inline: auto; } }

.one { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.one.narrow { grid-template-columns: minmax(0, 360px) minmax(0, 1fr); justify-content: center; }
.one-info h2 { font-size: clamp(26px, 3vw, 36px); margin: 12px 0 14px; }
.one-info > p { color: var(--ink-2); max-width: 52ch; }
.one-info ul { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.one-info li { display: flex; gap: 12px; color: var(--ink-2); font-size: 15.5px; }
.one-info li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 9px; border-radius: 50%; background: var(--gold-grad); }
.one-extra { margin-top: 26px; }
.one-extra .qa-seg { margin-bottom: 8px; }
.one-extra .hint { font-size: 13.5px; color: var(--muted); margin-top: 10px; max-width: 46ch; }
@media (max-width: 900px) { .one, .one.narrow { grid-template-columns: 1fr; gap: 32px; } .one.narrow .one-dev { max-width: 380px; margin-inline: auto; } }

.d-notes { padding: 88px 0 96px; }
.note-card { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: center; padding: clamp(28px, 4vw, 52px); border-radius: 30px; border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--surface), var(--surface-2)); box-shadow: var(--shadow); }
.note-card h2 { font-size: clamp(26px, 3.2vw, 38px); margin: 12px 0 14px; }
.note-card p { color: var(--ink-2); }
.note-cta { display: grid; gap: 12px; justify-items: stretch; }
@media (max-width: 820px) { .note-card { grid-template-columns: 1fr; } }

/* expand overlay */
.modal { position: fixed; inset: 0; z-index: 90; background: rgba(4, 10, 20, .86); backdrop-filter: blur(10px); display: grid; place-items: center; padding: 24px; animation: fadein .25s; }
.modal .m-host { max-width: 100%; }
.modal .m-close { position: fixed; top: 18px; right: 18px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff; cursor: pointer; font-size: 22px; display: grid; place-items: center; }
@keyframes fadein { from { opacity: 0 } }
