.hero { padding-top: 24px; padding-bottom: 32px; }
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr) 172px;
  gap: var(--gap);
  height: clamp(660px, calc(100vh - var(--header-h) - 96px), 760px);
}
.tile { min-width: 0; border-radius: var(--r-canvas); }
.tile--lead {
  grid-column: 1 / 8;
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  padding: 38px 44px 26px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}
.eyebrow {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 13px 5px 11px;
  margin: 1em 0;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: var(--weight-medium);
  color: var(--text-muted);
}
.eyebrow__dot { width: 7px; height: 7px; flex-shrink: 0; border-radius: var(--r-circle); background: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring); }
.headline { margin: 20px 0 0; font-size: var(--size-h1); line-height: 1.14; letter-spacing: var(--tracking-title); }
.headline__line { display: block; }
.headline__mark { position: relative; display: inline-block; z-index: 0; }
.headline__mark::before {
  content: "";
  position: absolute;
  inset: 0.16em -0.18em -0.12em;
  background: var(--accent-tint);
  border-radius: var(--r-xs);
  z-index: -1;
}
.lede { max-width: 37em; margin: 22px 0 0; font-size: 16px; line-height: 1.72; color: var(--text-muted); }
.lede strong { color: var(--text); }
.chips, .fact-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.chip, .fact, .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  min-height: 28px;
  padding: 3px 12px;
  border-radius: var(--r-pill);
  background: var(--bg-panel);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: var(--weight-medium);
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.fact { border: 1px solid var(--border); background: var(--bg); color: var(--text-muted); }
.fact strong { color: var(--text); font-weight: var(--weight-semibold); }
.badge--accent, .store-pill { background: var(--accent-tint); color: var(--accent-dark); }
.badge--outline { background: var(--bg); color: var(--text-muted); border: 1px solid var(--border); }
.devices { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; }
.devices__label { font-size: 12.5px; font-weight: var(--weight-semibold); color: var(--text-muted); letter-spacing: 0.02em; }
.devices__item { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; font-size: 14px; font-weight: var(--weight-semibold); }
.devices__item svg { width: 18px; height: 18px; color: var(--text-muted); }
.devices__item:hover, .devices__item:hover svg { color: var(--accent-dark); }
.store-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 3px 12px; border-radius: var(--r-pill); font-size: 13px; font-weight: var(--weight-bold); }
.store-pill svg { width: 13px; height: 13px; }
.tile--canvas {
  grid-column: 8 / 13;
  grid-row: 1 / 4;
  position: relative;
  margin: 0;
  background: radial-gradient(62% 44% at 10% 6%, var(--accent-glow), var(--clear) 72%), linear-gradient(148deg, var(--canvas-start), var(--bg-panel-2) 54%, var(--bg-deep));
  color: var(--on-dark);
}
.wire { position: absolute; width: 0; border-left: 1px dashed var(--wire); z-index: 1; }
.wire--a { left: 63%; top: 14%; height: 26%; }
.wire--b { left: 37%; top: 54%; height: 36%; }
.joint {
  position: absolute;
  left: 37%;
  top: 72%;
  z-index: 2;
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  display: grid;
  place-items: center;
  border-radius: var(--r-node);
  background: var(--bg-panel-2);
  border: 1px solid var(--node-edge);
  color: var(--on-dark);
}
.joint svg { width: 12px; height: 12px; }
.float { position: absolute; z-index: 3; background: var(--bg); color: var(--text); border-radius: var(--r-card); box-shadow: var(--shadow-float); }
.float--store { top: -14px; right: -16px; width: 330px; padding: 16px; }
.float--route { top: 34%; left: 22%; width: 300px; }
.float--rule { bottom: -14px; left: 28px; width: 330px; padding: 14px 16px 16px; }
.verify__head { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.verify__icon { display: block; width: 40px; height: 40px; flex-shrink: 0; border-radius: var(--r-logo); }
.verify__icon--placeholder { background: linear-gradient(150deg, var(--bg), var(--bg-panel)); color: var(--text); border: 1px solid var(--border-strong); }
.verify__name { font-family: var(--font-display); font-size: 15px; font-weight: var(--weight-display); letter-spacing: var(--tracking-title); line-height: 1.25; }
.verify__src { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-muted); }
.verify__src svg { width: 11px; height: 11px; }
.verify__tag { margin-left: auto; align-self: flex-start; padding: 2px 8px; border-radius: var(--r-pill); background: var(--accent-tint); color: var(--accent-dark); font-size: 11.5px; font-weight: var(--weight-bold); }
.verify__facts { display: grid; grid-template-columns: 56px 1fr; gap: 7px 8px; margin: 12px 0 0; font-size: 12.5px; line-height: 1.45; }
.verify__facts dt { color: var(--text-muted); }
.verify__facts dd { min-width: 0; margin: 0; color: var(--text); font-weight: var(--weight-semibold); overflow-wrap: break-word; }
.mono { font-family: var(--font-mono); }
.group__title { padding: 12px 16px 8px; font-size: 12px; font-weight: var(--weight-bold); letter-spacing: 0.01em; color: var(--text-muted); }
.group__list { margin: 0; padding: 0; list-style: none; }
.group__row { display: grid; grid-template-columns: 10px 1fr 14px; align-items: center; gap: 12px; padding: 10px 14px 10px 16px; border-top: 1px solid var(--border); }
.group__dot { width: 9px; height: 9px; border-radius: var(--r-circle); border: 1.5px solid var(--border-strong); }
.group__dot--on { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.group__name { display: block; font-size: 14px; font-weight: var(--weight-bold); line-height: 1.3; }
.group__note { display: block; font-size: 12px; color: var(--text-muted); line-height: 1.45; }
.group__chev { width: 14px; height: 14px; color: var(--border-strong); }
.rule__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px; margin-bottom: 8px; }
.rule__title { font-family: var(--font-mono); font-size: 12.5px; font-weight: var(--weight-bold); }
.rule__hint { font-size: 11.5px; color: var(--text-muted); }
.rule__code { margin: 0; padding: 10px 12px; border-radius: var(--r-node); background: var(--bg-panel); color: var(--text-muted); font-family: var(--font-mono); font-size: 12.5px; line-height: 1.9; white-space: pre; overflow-x: auto; }
.rule__code b { color: var(--text); font-weight: var(--weight-semibold); }
.rule__code .pol { color: var(--accent-dark); font-weight: var(--weight-bold); }
.minis { grid-column: 1 / 8; grid-row: 3; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.mini { display: flex; flex-direction: column; padding: 20px 22px; background: var(--bg-panel); color: var(--text); border-radius: var(--r-canvas); transition: transform var(--ease), box-shadow var(--ease); }
.mini:hover { transform: translateY(-3px); background: var(--bg); color: var(--text); box-shadow: var(--shadow-lift); }
.mini__title { font-size: 15px; font-weight: var(--weight-bold); letter-spacing: -0.01em; }
.mini__title span { color: var(--accent-dark); margin-left: 4px; }
.mini__desc { margin: 6px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--text-muted); }
.mini__code { margin-top: auto; padding-top: 10px; font-family: var(--font-mono); font-size: 12px; line-height: 1.6; color: var(--accent-dark); overflow-wrap: anywhere; }
.peek { padding-top: 28px; padding-bottom: 48px; border-top: 1px solid var(--border); }
.peek__kicker { margin: 0; font-size: 13px; font-weight: var(--weight-bold); color: var(--accent-dark); }
.peek__title { margin: 6px 0 0; font-size: 28px; }
.peek__text { margin: 10px 0 0; max-width: 40em; color: var(--text-muted); }
.app-store {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 22px;
  border-radius: var(--r-btn);
  background: var(--accent-dark);
  color: var(--on-dark);
  box-shadow: var(--shadow-soft);
  transition: transform var(--ease), background-color var(--ease);
}
.app-store:hover { background: var(--bg-panel-2); color: var(--on-dark); transform: translateY(-1px); }
.app-store svg { width: 25px; height: 28px; }
.app-store__text { display: block; text-align: left; }
.app-store__eyebrow { display: block; font-size: 12px; line-height: 1.3; }
.app-store__title { display: block; font-size: 17px; font-weight: var(--weight-bold); line-height: 1.4; }
.store-guide { padding: 28px; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--bg-panel); color: var(--text); }
.store-guide h2 { font-size: 24px; margin-top: 0; }
.store-guide p { color: var(--text-muted); }
.capabilities {
  margin-inline: 24px;
  padding: 56px 40px 32px;
  border-radius: var(--r-canvas);
  background: linear-gradient(135deg, var(--bg-panel-2), var(--bg-deep));
  color: var(--on-dark);
  overflow-x: clip;
}
.capabilities__inner { max-width: var(--container); margin-inline: auto; }
.tabs__layout { display: grid; grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
[role="tablist"] { display: flex; flex-wrap: wrap; gap: 8px; }
[role="tab"] { min-height: 48px; padding: 12px 18px; border: 1px solid var(--border); border-radius: var(--r-btn); background: var(--bg); color: var(--text-muted); font-weight: var(--weight-semibold); text-align: left; }
[role="tab"][aria-selected="true"] { border-color: var(--accent-dark); background: var(--accent-tint); color: var(--accent-dark); }
[role="tabpanel"] { min-width: 0; }
.capabilities [role="tablist"] { flex-direction: column; gap: 4px; }
.capabilities [role="tab"] { position: relative; width: 100%; padding: 15px 20px; border: 0; border-radius: var(--r-xs); background: var(--clear); color: var(--on-dark-muted); }
.capabilities [role="tab"] strong { display: block; color: var(--on-dark); font-size: 18px; }
.capabilities [role="tab"] small { display: block; margin-top: 4px; font-size: 13px; font-weight: var(--weight-regular); }
.capabilities [role="tab"][aria-selected="true"] { background: var(--node-fill); color: var(--on-dark); }
.capabilities [role="tab"][aria-selected="true"]::before { content: ""; position: absolute; inset: 14px auto 14px 0; width: 3px; background: var(--accent); border-radius: var(--r-xs); }
.capabilities :focus-visible { outline-color: var(--on-dark); }
.capabilities__detail { padding: 36px; border-radius: var(--r-card); background: var(--bg); color: var(--text); box-shadow: var(--shadow-float); }
.capabilities__detail p { color: var(--text-muted); line-height: 1.85; }
.capabilities__detail a { color: var(--accent-dark); font-weight: var(--weight-semibold); }
.capabilities__detail :focus-visible { outline-color: var(--accent-dark); }
.divider-caption { display: flex; align-items: center; gap: 24px; margin-top: 40px; color: var(--on-dark-muted); text-align: center; font-size: 14px; }
.divider-caption::before, .divider-caption::after { content: ""; flex: 1; height: 1px; background: var(--wire); }
.toc { position: sticky; top: calc(var(--header-h) + 12px); z-index: 10; padding: 12px; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--bg); color: var(--text); box-shadow: var(--shadow-soft); }
.toc ul { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; }
.toc a { display: block; padding: 9px 12px; border-radius: var(--r-btn); font-size: 14px; color: var(--text-muted); }
.toc a:hover, .toc a[aria-current] { background: var(--accent-tint); color: var(--accent-dark); }
.toc--flow { position: static; }
.faq-item { margin-top: 12px; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--bg); color: var(--text); }
.faq-item > summary { position: relative; cursor: pointer; padding: 20px 52px 20px 22px; font-weight: var(--weight-semibold); list-style: none; }
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after { content: "+"; position: absolute; right: 22px; top: 20px; color: var(--accent-dark); }
.faq-item[open] > summary::after { content: "−"; }
.faq-item__body { padding: 0 22px 22px; color: var(--text-muted); }
.faq-item__body p:last-child { margin-bottom: 0; }
.term-card { padding: 24px; border-left: 3px solid var(--accent); border-radius: var(--r-card); background: var(--bg-panel); color: var(--text); }
.term-card h3 { margin: 10px 0; font-size: 20px; }
.term-card p { color: var(--text-muted); margin-bottom: 0; }
.official-shot { width: 100%; max-width: 280px; margin: 0 auto; padding: 0; flex-shrink: 0; }
.official-shot img { display: block; width: 100%; height: auto; border-radius: 10px; }
.official-shot { border: 1px solid var(--border); border-radius: var(--r-card); background: var(--bg); color: var(--text); }
.official-shot figcaption { padding: 12px 14px; color: var(--text-muted); font-size: 13px; line-height: 1.6; }
.shot-pair { display: flex; justify-content: center; align-items: flex-start; gap: 24px; }
.device-card { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 20px; padding: 28px; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--bg); color: var(--text); box-shadow: var(--shadow-soft); }
.device-card > svg { width: 42px; height: 52px; color: var(--accent-dark); }
.device-card h3 { margin: 0 0 8px; }
.device-card p { color: var(--text-muted); margin-bottom: 14px; }
.device-card__link { color: var(--accent-dark); font-weight: var(--weight-semibold); }
.article-card { display: flex; flex-direction: column; gap: 14px; padding: 28px; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--bg); color: var(--text); transition: box-shadow var(--ease), transform var(--ease); }
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.article-card h3 { margin: 0; font-size: 20px; }
.article-card p { margin: 0; color: var(--text-muted); }
.article-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 13px; color: var(--text-muted); }
.article-card__link { margin-top: auto; color: var(--accent-dark); font-weight: var(--weight-semibold); }
.callout { margin: 24px 0; padding: 22px 24px; border-left: 3px solid var(--accent); border-radius: var(--r-btn); background: var(--accent-tint); color: var(--text); }
.callout p:last-child { margin-bottom: 0; }
.callout__title { display: block; margin-bottom: 8px; font-weight: var(--weight-bold); color: var(--accent-dark); }
.callout--warn { border-left-color: var(--warn); background: var(--bg-panel); color: var(--text); }
.callout--error { border-left-color: var(--error); background: var(--bg-panel); color: var(--text); }
.table-scroll { max-width: 100%; min-width: 0; overflow-x: auto; overscroll-behavior-inline: contain; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: var(--r-btn); }
.data-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
.data-table :is(th, td), .prose table :is(th, td) { min-width: 7em; padding: 14px 18px; border-bottom: 1px solid var(--border); overflow-wrap: normal; word-break: normal; vertical-align: top; }
.data-table th, .prose table th { background: var(--bg-panel); color: var(--text); font-weight: var(--weight-semibold); }
.data-table td, .prose table td { background: var(--bg); color: var(--text-muted); }
.data-table tr:last-child td { border-bottom: 0; }
.prose table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; min-width: 0; border-collapse: collapse; text-align: left; }
.dl-fab { position: fixed; right: 24px; bottom: 24px; z-index: 25; display: inline-flex; align-items: center; gap: 12px; max-width: calc(100% - 36px); min-height: 56px; padding: 12px 18px; border-radius: var(--r-card); background: var(--accent-dark); color: var(--on-dark); box-shadow: var(--shadow-lift); }
.dl-fab svg { width: 22px; height: 22px; }
.dl-fab strong, .dl-fab small { display: block; }
.dl-fab small { font-size: 12px; }
.preview-section { padding-top: 56px; padding-bottom: 56px; border-top: 1px solid var(--border); }
.preview-section > h2 { margin-top: 0; }
.preview-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.swatch-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.swatch { border: 1px solid var(--border); border-radius: var(--r-btn); background: var(--bg); color: var(--text); }
.swatch__paint { display: block; height: 60px; border-radius: var(--r-btn) var(--r-btn) 0 0; }
.swatch code { display: block; padding: 10px; font-size: 12px; }
.swatch--bg { background: var(--bg); }
.swatch--panel { background: var(--bg-panel); }
.swatch--panel2 { background: var(--bg-panel-2); }
.swatch--deep { background: var(--bg-deep); }
.swatch--canvas { background: var(--canvas-start); }
.swatch--border { background: var(--border); }
.swatch--border-strong { background: var(--border-strong); }
.swatch--accent { background: var(--accent); }
.swatch--accent-dark { background: var(--accent-dark); }
.swatch--tint { background: var(--accent-tint); }
.swatch--ring { background: var(--accent-ring); }
.swatch--glow { background: var(--accent-glow); }
.swatch--text { background: var(--text); }
.swatch--muted { background: var(--text-muted); }
.swatch--faint { background: var(--text-faint); }
.swatch--success { background: var(--success); }
.swatch--warn { background: var(--warn); }
.swatch--error { background: var(--error); }
.swatch--on-dark { background: var(--on-dark); }
.swatch--on-dark-muted { background: linear-gradient(var(--on-dark-muted), var(--on-dark-muted)), var(--bg-deep); }
.swatch--wire { background: linear-gradient(var(--wire), var(--wire)), var(--bg-deep); }
.swatch--node-fill { background: linear-gradient(var(--node-fill), var(--node-fill)), var(--bg-deep); }
.swatch--node-edge { background: linear-gradient(var(--node-edge), var(--node-edge)), var(--bg-deep); }
.swatch--veil { background: var(--veil); }
.swatch--clear { background: var(--clear); }
.shot-placeholder { display: grid; place-items: center; width: 100%; aspect-ratio: 750 / 1334; border-radius: var(--r-card); background: var(--bg-panel); color: var(--text-muted); text-align: center; padding: 20px; font-size: 14px; }
.preview-type-display { font-size: var(--size-h1); font-weight: var(--weight-display); line-height: 1.14; letter-spacing: var(--tracking-title); }
@media (max-width: 1099px) {
  .bento { height: auto; grid-template-columns: 1fr; grid-template-rows: none; }
  .tile--lead, .tile--canvas, .minis { grid-column: 1 / -1; grid-row: auto; }
  .tile--lead { min-height: 0; }
  .devices { margin-top: 26px; }
  .tile--canvas { height: 680px; }
  .float--store { right: 24px; top: 28px; }
  .float--rule { bottom: 28px; }
}
@media (max-width: 850px) {
  .tabs__layout { grid-template-columns: 1fr; gap: 24px; }
  .capabilities { padding: 32px 24px; }
}
@media (max-width: 720px) {
  .hero { padding-top: 16px; }
  .tile--lead { padding: 26px 20px 20px; }
  .headline { font-size: 28px; }
  .lede { font-size: 15px; }
  .tile--canvas { height: auto; display: flex; flex-direction: column; gap: 26px; padding: 30px 16px; }
  .float { position: relative; top: auto; right: auto; bottom: auto; left: auto; width: 88%; max-width: 340px; }
  .float--store { align-self: flex-end; }
  .float--route { align-self: center; }
  .float--rule { align-self: flex-start; }
  .wire--a { left: 50%; top: 24px; height: calc(100% - 48px); }
  .wire--b, .joint { display: none; }
  .minis { grid-template-columns: 1fr; }
  .peek__title { font-size: 24px; }
}
@media (max-width: 640px) {
  .headline { font-size: clamp(24px, 6.9vw, 28px); }
  .headline__line { white-space: normal; }
  .eyebrow { font-size: 12px; padding-inline: 10px; }
  .devices { gap: 6px 16px; }
  .fact-row, .chips { flex-direction: row; flex-wrap: wrap; }
  .capabilities { margin-inline: 18px; padding: 28px 18px; }
  .capabilities__detail { padding: 22px; }
  .divider-caption { gap: 12px; }
  .shot-pair { flex-direction: column; align-items: center; }
  .device-card { grid-template-columns: 34px minmax(0, 1fr); padding: 22px; gap: 14px; }
  .device-card > svg { width: 32px; height: 44px; }
  .dl-fab { right: 18px; bottom: max(18px, env(safe-area-inset-bottom)); }
  .store-guide { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .mini:hover, .article-card:hover, .app-store:hover { transform: none; }
}