/* Idrok Industries — site system v3.
   Neutral surfaces and grey frames, aligned with the TensorOS product: white with
   #e8e8e8 lines in light mode, space black with #242424 lines in dark mode.
   The theme is keyed on html[data-theme], set before first paint by the inline
   script that scripts/stamp-chrome.mjs writes into every page's <head>. */

/* ---------- Tokens ---------- */
:root {
  --bg: #0b0b0b;
  --bg-2: #0f0f0f;
  --panel: #131313;
  --panel-2: #191919;
  --panel-3: #212121;
  --line: #242424;
  --line-2: #353535;
  --text: #ededed;
  --idrok-mark: #F5F4EC;
  --tensor-mark: #9DBE75;
  --text-2: #c8c8c8;
  --muted: #9a9a9a;
  --faint: #6b6b6b;
  --invert: #ededed;
  --invert-text: #111111;
  --accent: #9eae78;
  --accent-ink: #aebd8f;
  --accent-btn: #647945;
  --accent-btn-hover: #718852;
  --mark: #9eae78;
  --live: #9fd08a;
  --live-bg: rgba(126, 186, 104, .13);
  --danger: #f2555a;
  --dot: rgba(255, 255, 255, .075);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 10px 28px -8px rgba(0, 0, 0, .55);
  --shadow-lg: 0 28px 70px -18px rgba(0, 0, 0, .7);
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --max: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(72px, 9vw, 128px);
  --header: 68px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 22px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}
html[data-theme="light"] {
  --bg: #ffffff;
  --bg-2: #fafafa;
  --panel: #ffffff;
  --panel-2: #f6f6f6;
  --panel-3: #eeeeee;
  --line: #e8e8e8;
  --line-2: #d4d4d4;
  --text: #111111;
  --idrok-mark: #10110F;
  --tensor-mark: #5C7A36;
  --text-2: #3b3b3b;
  --muted: #666666;
  --faint: #8c8c8c;
  --invert: #111111;
  --invert-text: #ffffff;
  --accent: #647945;
  --accent-ink: #55693a;
  --accent-btn: #647945;
  --accent-btn-hover: #56683b;
  --mark: #647945;
  --live: #3d7a33;
  --live-bg: rgba(84, 150, 64, .12);
  --danger: #d23b40;
  --dot: rgba(0, 0, 0, .075);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .05);
  --shadow-md: 0 10px 28px -10px rgba(0, 0, 0, .12);
  --shadow-lg: 0 28px 70px -24px rgba(0, 0, 0, .2);
  color-scheme: light;
}

/* ---------- Base ---------- */
html { -webkit-text-size-adjust: 100%; background: var(--bg); scroll-padding-top: calc(var(--header) + 16px); }
html.is-settled { scroll-behavior: smooth; }
body.site {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  font: 400 15.5px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
body.site > main { flex: 1 0 auto; }
body.site.menu-open { overflow: hidden; }
:where(body.site) *, :where(body.site) *::before, :where(body.site) *::after { box-sizing: border-box; }
:where(body.site) :where(img, svg, video, picture) { display: block; max-width: 100%; }
:where(body.site) img { height: auto; }
:where(body.site) a { color: inherit; }
:where(body.site) :where(p, h1, h2, h3, h4, figure, blockquote, dl, dd) { margin: 0; }
:where(body.site) :where(button, input, select, textarea) { font: inherit; color: inherit; }
:where(body.site) [hidden] { display: none !important; }
body.site ::selection { background: var(--accent); color: #0b0b0b; }
.site :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.site-skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 8px; background: var(--invert); color: var(--invert-text); font-size: 14px; text-decoration: none; }
.site-skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Layout ---------- */
.site-wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.site-wrap--narrow { max-width: calc(880px + var(--gutter) * 2); }
.site-wrap--text { max-width: calc(700px + var(--gutter) * 2); }
.site-section { position: relative; padding-block: var(--section); }
.site-section--tight { padding-block: clamp(48px, 6vw, 80px); }
.site-section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.site-section--flush-top { padding-top: 0; }

/* ---------- Type ---------- */
.site-eyebrow { display: block; margin: 0 0 16px; font: 600 11px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); }
:where(.site) :where(h1, h2) { font-family: var(--serif); font-weight: 400; color: var(--text); text-wrap: balance; }
.site h1 { font-size: clamp(40px, 5.8vw, 76px); line-height: 1.03; letter-spacing: -.04em; }
.site h2 { font-size: clamp(30px, 3.7vw, 50px); line-height: 1.08; letter-spacing: -.035em; }
.site h3 { font: 600 17px/1.35 var(--sans); letter-spacing: -.012em; color: var(--text); }
.site :is(h1, h2) :is(b, em) { font-family: var(--sans); font-style: normal; font-weight: 700; letter-spacing: -.055em; }
.site :is(h1, h2) .dim { color: var(--muted); }
.site-lede { max-width: 38em; font-size: clamp(16.5px, 1.3vw, 18.5px); line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.site-muted { color: var(--muted); }
.site-small { font-size: 13.5px; line-height: 1.55; color: var(--muted); }

/* ---------- Buttons & links ---------- */
.site-btn {
  --h: 42px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 18px; border: 1px solid transparent; border-radius: var(--r-md);
  background: var(--panel-2); color: var(--text);
  font: 600 14px/1 var(--sans); letter-spacing: -.005em; text-decoration: none; white-space: nowrap;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color .18s, border-color .18s, color .18s, opacity .18s, transform .12s var(--ease);
}
.site-btn:active { transform: scale(.975); }
.site-btn--accent { background: var(--accent-btn); color: #ffffff; }
.site-btn--accent:hover { background: var(--accent-btn-hover); }
.site-btn--primary { background: var(--invert); color: var(--invert-text); }
.site-btn--primary:hover { opacity: .86; }
.site-btn--secondary { background: var(--panel-2); border-color: var(--line); color: var(--text); }
.site-btn--secondary:hover { background: var(--panel-3); border-color: var(--line-2); }
.site-btn--sm { --h: 36px; padding: 0 14px; border-radius: 9px; font-size: 13.5px; }
.site-btn--lg { --h: 48px; padding: 0 22px; border-radius: 12px; font-size: 15px; }
.site-btn .ext, .site-btn .arrow { opacity: .9; transition: transform .18s var(--ease); }
.site-btn:hover .arrow { transform: translateX(2px); }
.site-btn:hover .ext { transform: translate(1px, -1px); }
.site-btn[disabled] { opacity: .55; cursor: progress; }
.site-link { display: inline-flex; align-items: center; gap: 6px; font: 600 14px/1.4 var(--sans); color: var(--text); text-decoration: none; }
.site-link span { transition: transform .18s var(--ease); }
.site-link:hover span { transform: translateX(3px); }
.site-link:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.site-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.site-icon-btn {
  width: 38px; height: 38px; display: inline-grid; place-items: center; flex: none;
  border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--text);
  cursor: pointer; transition: background-color .18s, border-color .18s;
}
.site-icon-btn:hover { background: var(--panel-2); border-color: var(--line-2); }
.site-icon-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.theme-icon-sun { display: none; }
html[data-theme="light"] .theme-icon-sun { display: block; }
html[data-theme="light"] .theme-icon-moon { display: none; }

/* ---------- Chips & the TensorOS lockup ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--panel-2);
  font: 500 12.5px/1 var(--sans); color: var(--text-2); white-space: nowrap;
}
.chip--live { border-color: transparent; background: var(--live-bg); color: var(--live); }
.chip--soon { color: var(--muted); }
.chip--mono { font: 500 11.5px/1 var(--mono); letter-spacing: .02em; }
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
/* TensorOS presents its brand as a mono "-->" and a serif wordmark; this mirrors it. */
.tos { display: inline-flex; align-items: center; gap: 7px; color: var(--text); text-decoration: none; line-height: 1; }
.tos-mark { display: block; flex: none; width: 1.5em; height: auto; color: var(--tensor-mark); }
.tos-name { font: 500 1.18em/1 var(--serif); letter-spacing: -.05em; }
.tos--lg { font-size: 19px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid transparent; transition: border-color .2s; }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header { background: color-mix(in srgb, var(--bg) 84%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px); }
}
.site-header.is-scrolled, body.menu-open .site-header { border-bottom-color: var(--line); }
.site-header-inner { height: var(--header); display: flex; align-items: center; gap: 28px; }
.site-brand { display: inline-flex; align-items: center; gap: 10px; flex: none; color: var(--text); text-decoration: none; }
.site-brand svg { width: 24px; height: 24px; flex: none; color: var(--idrok-mark); }
.site-brand-text { display: flex; flex-direction: column; gap: 4px; line-height: 1; }
.site-brand-text b { font: 700 15.5px/1 var(--sans); letter-spacing: .16em; }
.site-brand-text small { font: 600 6.5px/1 var(--mono); letter-spacing: .42em; color: var(--muted); }
.site-nav { display: flex; align-items: center; gap: 2px; }
.site-nav a { padding: 8px 11px; border-radius: 8px; font: 500 14px/1 var(--sans); color: var(--muted); text-decoration: none; transition: color .15s, background-color .15s; }
.site-nav a:hover { color: var(--text); background: var(--panel-2); }
.site-nav a[aria-current="page"] { color: var(--text); background: var(--panel-2); }
.site-header-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.site-menu-btn { display: none; }
.site-menu-btn .bar { display: block; width: 16px; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.site-menu-btn .bar + .bar { margin-top: 5px; }
.site-menu-btn[aria-expanded="true"] .bar:first-child { transform: translateY(3.25px) rotate(45deg); }
.site-menu-btn[aria-expanded="true"] .bar:last-child { transform: translateY(-3.25px) rotate(-45deg); }

.site-menu {
  position: fixed; inset: var(--header) 0 0 0; z-index: 49; display: flex; flex-direction: column;
  padding: 6px var(--gutter) max(28px, env(safe-area-inset-bottom)); background: var(--bg);
  overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility 0s linear .22s;
}
.site-menu.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.site-menu nav { display: flex; flex-direction: column; }
.site-menu nav a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 58px;
  border-bottom: 1px solid var(--line); text-decoration: none;
  font: 500 19px/1.2 var(--sans); letter-spacing: -.015em; color: var(--text);
}
.site-menu nav a small { font: 400 13px/1.3 var(--sans); letter-spacing: 0; color: var(--muted); text-align: right; }
.site-menu nav a[aria-current="page"] { color: var(--accent-ink); }
.site-menu-actions { display: grid; gap: 10px; margin-top: 24px; }
.site-menu-actions .site-btn { --h: 50px; width: 100%; font-size: 15px; }
@media (max-width: 1080px) {
  .site-nav, .site-header-tools .site-btn--secondary { display: none; }
  .site-menu-btn { display: inline-grid; }
}
@media (min-width: 1081px) { .site-menu { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; padding-block: clamp(64px, 9vw, 120px) 8px; text-align: center; }
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto; height: min(720px, 100%); z-index: -1; pointer-events: none;
  background-image: radial-gradient(var(--dot) 1px, transparent 1.3px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 72% 62% at 50% 28%, #000 25%, transparent 74%);
  mask-image: radial-gradient(ellipse 72% 62% at 50% 28%, #000 25%, transparent 74%);
}
.hero h1 { max-width: 12.5em; margin-inline: auto; }
.hero .site-lede { margin: 22px auto 0; }
.hero .site-actions { justify-content: center; margin-top: 30px; }
.hero-brand { display: flex; justify-content: center; margin-bottom: 22px; }
.hero-note { margin-top: 18px; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.hero-note a { color: var(--text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.hero-media { margin-top: clamp(48px, 6vw, 80px); }
.hero--page { padding-bottom: clamp(56px, 7vw, 96px); }
.hero--page h1 { max-width: 14em; }
.hero--left { text-align: left; }
.hero--left h1, .hero--left .site-lede { margin-left: 0; }
.hero--left .site-actions { justify-content: flex-start; }
.hero--left::before { -webkit-mask-image: radial-gradient(ellipse 60% 70% at 20% 30%, #000 20%, transparent 72%); mask-image: radial-gradient(ellipse 60% 70% at 20% 30%, #000 20%, transparent 72%); }
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 24px; font: 500 13.5px/1 var(--sans); color: var(--muted); text-decoration: none; }
.back-link:hover { color: var(--text); }

/* ---------- Product window (framed screenshots) ---------- */
.window { position: relative; margin: 0; padding: clamp(5px, .7vw, 9px); border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--panel-2); box-shadow: var(--shadow-lg); }
.window img { width: 100%; border: 1px solid var(--line); border-radius: calc(var(--r-xl) - 8px); background: #ffffff; }
.window--plain { box-shadow: none; }
.window-caption { margin-top: 14px; text-align: center; font-size: 13px; line-height: 1.5; color: var(--muted); }

/* ---------- Section heads ---------- */
.section-head { max-width: 780px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.section-head .site-lede { margin: 16px auto 0; }
.section-head .site-actions { justify-content: center; margin-top: 26px; }
.section-head .tos { margin-bottom: 18px; }
.section-head--left { margin-left: 0; text-align: left; }
.section-head--left .site-lede { margin-left: 0; }
.section-head--left .site-actions { justify-content: flex-start; }
.section-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; margin-top: clamp(28px, 3.5vw, 44px); }

/* ---------- Cards & grids ---------- */
.card {
  --pad: clamp(20px, 2.2vw, 28px);
  position: relative; display: flex; flex-direction: column; min-width: 0;
  padding: var(--pad); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel);
  transition: border-color .2s, box-shadow .25s, transform .25s var(--ease);
}
a.card { color: inherit; text-decoration: none; }
@media (hover: hover) {
  a.card:hover { border-color: var(--line-2); box-shadow: var(--shadow-md); transform: translateY(-2px); }
}
.card p:not(.site-eyebrow) { margin-top: 8px; font-size: 15px; line-height: 1.6; color: var(--muted); }
.card p:not(.site-eyebrow) + p { margin-top: 10px; }
.card .site-eyebrow { margin-bottom: 14px; }
.card p a { color: var(--text); text-underline-offset: 3px; }
.card > .site-link, .card > .card-foot { margin-top: auto; padding-top: 20px; }
.card-icon { width: 38px; height: 38px; display: grid; place-items: center; flex: none; margin-bottom: 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); color: var(--text); }
.card-icon svg, .ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card-num { display: block; margin-bottom: 20px; font: 500 12px/1 var(--mono); letter-spacing: .02em; color: var(--accent-ink); }
.card-body { padding-bottom: 24px; }
.card-media { margin: auto calc(var(--pad) * -1) calc(var(--pad) * -1); padding: 18px 0 0 18px; overflow: hidden; border-top: 1px solid var(--line); border-radius: 0 0 calc(var(--r-lg) - 1px) calc(var(--r-lg) - 1px); background: var(--panel-2); }
.card-media img { width: 100%; border: 1px solid var(--line); border-right: 0; border-bottom: 0; border-radius: 10px 0 0 0; background: #ffffff; }
.card-media--cover img { aspect-ratio: 2 / 1; object-fit: cover; object-position: left top; }
.card-media--fit { padding: 18px; }
.card-media--fit img { max-width: 560px; margin-inline: auto; border: 1px solid var(--line); border-radius: 10px; }
.card--inset { background: var(--panel-2); }
.grid { display: grid; gap: 16px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

/* Bento: a 6-column grid of framed cards. */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.bento > * { grid-column: span 3; }
.bento > .span-2 { grid-column: span 2; }
.bento > .span-4 { grid-column: span 4; }
.bento > .span-6 { grid-column: span 6; }
@media (max-width: 960px) { .bento > *, .bento > .span-2, .bento > .span-4 { grid-column: span 3; } .bento > .span-wide-md { grid-column: span 6; } }
@media (max-width: 640px) { .bento > *, .bento > .span-2, .bento > .span-4 { grid-column: span 6; } }

/* Permission modes, shown as a small segmented list. */
.modes { display: grid; gap: 6px; margin-top: 18px; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); }
.modes > div { padding: 10px 12px; border-radius: 8px; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.modes > div b { display: block; margin-bottom: 2px; font-weight: 600; color: var(--text); }
.modes > div:first-child { background: var(--panel); box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.flow { list-style: none; display: grid; margin: 18px 0 0; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); }
.flow li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 11px 14px; font-size: 13.5px; line-height: 1.45; color: var(--text-2); }
.flow li + li { border-top: 1px solid var(--line); }
.flow li span { font: 500 11.5px/1 var(--mono); color: var(--accent-ink); }
.card-body + .chips { margin-top: auto; }
.card-body + :is(.modes, .flow) { flex: 1; margin-top: 18px; grid-auto-rows: 1fr; }
.card-body + .modes > div { display: flex; flex-direction: column; justify-content: center; }
.card-body + .flow + .chips { margin-top: 14px; }
.flow + .chips { margin-top: 14px; }

/* ---------- Feature rows ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.feature--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feature--flip > .feature-copy { order: 2; }
.feature + .feature { margin-top: clamp(64px, 8vw, 112px); }
.feature-copy h2 { font-size: clamp(28px, 3vw, 40px); }
.feature-copy > p:not(.site-eyebrow) { margin-top: 16px; font-size: 16px; line-height: 1.65; color: var(--muted); }
.feature-copy .site-actions { margin-top: 26px; }
.checks { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px solid var(--line); }
.checks li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.checks li b { font-weight: 600; color: var(--text); }
.checks li svg { width: 16px; height: 16px; margin-top: 2px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 900px) {
  .feature, .feature--flip { grid-template-columns: 1fr; gap: 28px; }
  .feature--flip > .feature-copy { order: 0; }
}

/* ---------- Product tour (tabs; every panel stays in the page without JS) ---------- */
.tour-tabs { display: none; }
.js .tour-tabs { display: flex; gap: 4px; width: fit-content; max-width: 100%; margin: 0 auto clamp(28px, 4vw, 48px); padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.js .tour-tabs::-webkit-scrollbar { display: none; }
.tour-tabs button { flex: none; height: 36px; padding: 0 15px; border: 1px solid transparent; border-radius: 9px; background: transparent; font: 500 14px/1 var(--sans); color: var(--muted); white-space: nowrap; cursor: pointer; transition: color .15s, background-color .15s, box-shadow .15s; }
.tour-tabs button:hover { color: var(--text); }
.tour-tabs button[aria-selected="true"] { border-color: var(--line); background: var(--panel); color: var(--text); box-shadow: var(--shadow-sm); }
.tour-panel { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.tour-panel + .tour-panel { margin-top: clamp(64px, 8vw, 104px); }
.js .tour-panel:not(.is-active) { display: none; }
.js .tour-panel + .tour-panel { margin-top: 0; }
.js .tour-panel.is-active { animation: tour-in .45s var(--ease); }
.tour-panel:focus-visible { outline-offset: 8px; }
.tour-copy h3 { font: 400 clamp(26px, 2.6vw, 34px)/1.12 var(--serif); letter-spacing: -.03em; text-wrap: balance; }
.tour-copy > p:not(.site-eyebrow) { margin-top: 14px; font-size: 16px; line-height: 1.65; color: var(--muted); }
.tour-copy .site-small { margin-top: 14px; }
.tour-media { margin: 0; }
@media (min-width: 901px) {
  .tour-media .window { aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; }
  .tour-media .window img { width: auto; max-width: 100%; max-height: 100%; }
}
/* Automations: the graph film plays on laptops and larger; phones keep the still image.
   With the film, the copy moves above it and the film takes the full width. */
.gf-frame { display: none; }
.gf-still { display: block; width: 100%; }
@media (min-width: 901px) {
  [data-graph-film].is-live .gf-frame { display: block; }
  [data-graph-film].is-live .gf-still { display: none; }
  .tour-panel--wide { grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 3vw, 40px); }
  .tour-panel--wide .tour-copy { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: clamp(36px, 5vw, 80px); align-items: start; }
  .tour-panel--wide .tour-copy > * { grid-column: 1; }
  .tour-panel--wide .tour-copy { grid-template-rows: auto auto 1fr; }
  .tour-panel--wide .tour-copy > .checks { grid-column: 2; grid-row: 1 / span 2; align-self: end; margin-top: 0; }
  .tour-panel--wide .tour-copy > .site-small { grid-column: 2; grid-row: 3; align-self: start; }
}
@keyframes tour-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) {
  .js .tour-tabs { justify-content: flex-start; }
  .tour-panel { grid-template-columns: 1fr; gap: 22px; }
  .js .tour-media { order: -1; }
}

/* ---------- Integration logos ----------
   Every logo is the brand's own full-colour mark on the same tile. --s evens out
   marks that read larger or smaller than the rest at the same box size. */
.logo { --logo: 24px; width: 40px; height: 40px; flex: none; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: #ffffff; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.logo img { width: calc(var(--logo) * var(--s, 1)); height: calc(var(--logo) * var(--s, 1)); object-fit: contain; }
.logo--fill { border: 0; }
.logo--fill img { width: 100%; height: 100%; object-fit: cover; }

/* Home: the apps card, Google Workspace, Microsoft 365 and messaging in even rows */
.apps-card { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4.5vw, 64px); align-items: start; }
.apps-copy { display: flex; flex-direction: column; height: 100%; }
.apps-copy .checks { margin-top: 22px; }
.apps-copy .card-foot { margin-top: auto; padding-top: 22px; }
.apps-label { margin-bottom: 10px; font: 600 11px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.apps-copy .apps-label { margin: 26px 0 -12px; }
.apps-rows { display: grid; gap: 20px; align-self: center; }
.apps-grid { list-style: none; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; }
.apps-grid li { display: grid; place-items: center; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 14px; background: var(--panel-2); transition: transform .25s var(--ease), border-color .2s, box-shadow .25s; }
.apps-grid img { width: calc(44% * var(--s, 1)); height: auto; aspect-ratio: 1; object-fit: contain; }
@media (hover: hover) { .apps-grid li:hover { transform: translateY(-2px); border-color: var(--line-2); background: var(--panel); box-shadow: var(--shadow-md); } }
@media (max-width: 960px) { .apps-card { grid-template-columns: 1fr; } .apps-copy .card-foot { padding-top: 18px; } }
@media (max-width: 640px) { .apps-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; } .apps-grid li { border-radius: 12px; } }

/* ---------- Integrations section ---------- */
.int-live { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 0; overflow: hidden; padding: 0; }
.int-live > div { padding: clamp(22px, 3vw, 36px); }
.int-live-intro { display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.int-live-intro h4 { font: 400 clamp(24px, 2.4vw, 31px)/1.15 var(--serif); letter-spacing: -.025em; color: var(--text); text-wrap: balance; }
.int-live-intro > p { margin-top: 12px; }
.int-live-list { list-style: none; display: grid; margin: auto 0 0; padding: 18px 0 0; }
.int-steps { list-style: none; display: grid; gap: 0; margin: 0; padding: 0; background: var(--panel-2); }
.int-steps-title { display: block; margin-bottom: 16px; font: 600 11px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.int-step { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; padding: 16px 0; }
.int-step + .int-step { border-top: 1px solid var(--line); }
.int-step span { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); font: 500 12px/1 var(--mono); color: var(--accent-ink); }
.int-step b { display: block; font: 600 15px/1.4 var(--sans); color: var(--text); }
.int-step p { margin-top: 3px; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.int-catalog-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin: clamp(48px, 6vw, 72px) 0 18px; }
.int-catalog-head h3 { font: 400 clamp(24px, 2.4vw, 30px)/1.15 var(--serif); letter-spacing: -.025em; }
.int-catalog-head p { font-size: 14.5px; color: var(--muted); }
.int-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.int-group { padding: 20px; }
.int-group h4 { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 6px; font: 600 11px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.int-group h4 span { font: 500 12px/1 var(--mono); letter-spacing: 0; color: var(--faint); }
.int-group ul { list-style: none; display: grid; margin: 0; padding: 0; }
.int-group--more { justify-content: center; background: var(--panel-2); }
.int-group--more p { max-width: 24em; }
.int-group--more .site-link { margin-top: 18px; }
.int-item { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 0; }
.int-item > .chip { align-self: start; margin-top: 1px; }
.int-item + .int-item { border-top: 1px solid var(--line); }
.int-item b { display: block; font: 600 14.5px/1.3 var(--sans); color: var(--text); }
.int-item small { display: block; margin-top: 2px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.int-item .chip { height: 20px; padding: 0 7px; font-size: 11px; }
.int-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-top: 16px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel-2); font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.int-foot b { color: var(--text); font-weight: 600; }
@media (max-width: 1080px) { .int-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .int-live { grid-template-columns: 1fr; }
  .int-live-intro { border-right: 0; border-bottom: 1px solid var(--line); }
}

/* ---------- Pulses: the lockup, how they are spent, and a live meter ---------- */
.pulses-brand { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 22px; font: 700 27px/1 var(--sans); letter-spacing: -.04em; color: var(--text); }
.pulses-brand img { width: 44px; height: 44px; }
.pulses-panel { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 0; overflow: hidden; padding: 0; }
.pulses-steps { list-style: none; display: grid; align-content: center; margin: 0; padding: clamp(8px, 1.4vw, 16px) clamp(22px, 3vw, 36px); }
.pulses-steps li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 16px; padding: 20px 0; }
.pulses-steps li + li { border-top: 1px solid var(--line); }
.pulses-steps li > span { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); font: 500 12px/1 var(--mono); color: var(--accent-ink); }
.pulses-steps p { max-width: 36em; }
.pulse-meter { display: flex; flex-direction: column; justify-content: center; margin: 0; padding: clamp(22px, 3vw, 34px); border-left: 1px solid var(--line); background: var(--panel-2); }
.pm-card { padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); box-shadow: var(--shadow-md); }
.pm-head { display: flex; align-items: center; gap: 10px; }
.pm-head img { width: 30px; height: 30px; flex: none; }
.pm-head b { display: block; font: 600 14px/1.3 var(--sans); color: var(--text); }
.pm-head small { display: block; font-size: 12.5px; line-height: 1.35; color: var(--muted); }
.pm-total { display: flex; align-items: baseline; gap: 8px; margin: 18px 0 12px; }
.pm-total b { font: 650 34px/1 var(--sans); letter-spacing: -.035em; color: var(--text); font-variant-numeric: tabular-nums; }
.pm-total span { font-size: 13px; color: var(--muted); }
.pm-bar { display: flex; gap: 2px; height: 8px; overflow: hidden; border-radius: 99px; background: var(--panel-3); }
.pm-bar i { display: block; height: 100%; border-radius: 99px; transition: width .9s var(--ease); }
.pm-bar .pm-a { width: 14.2857%; background: var(--text-2); }
.pm-bar .pm-p { width: 85.7143%; background: var(--accent-btn); }
.pm-rows { list-style: none; display: grid; margin: 14px 0 0; padding: 0; }
.pm-rows li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 0; transition: opacity .3s; }
.pm-rows li + li { border-top: 1px solid var(--line); }
.pm-rows li.is-idle { opacity: .55; }
.pm-rows b { display: block; font: 600 13px/1.3 var(--sans); color: var(--text); }
.pm-rows small { display: block; font-size: 12px; line-height: 1.35; color: var(--muted); }
.pm-rows strong { font: 600 13.5px/1 var(--sans); color: var(--text); font-variant-numeric: tabular-nums; }
.pm-dot { width: 8px; height: 8px; border-radius: 3px; }
.pm-dot--a { background: var(--text-2); }
.pm-dot--p { background: var(--accent-btn); }
.pm-status { display: flex; align-items: center; gap: 9px; min-height: 20px; margin: 14px 0 0; font-size: 12.5px; line-height: 1.4; color: var(--text-2); }
.pm-pulse { position: relative; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--accent); }
.pm-pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--accent); animation: pm-ping 1.6s var(--ease) infinite; }
@keyframes pm-ping { from { transform: scale(1); opacity: .6; } to { transform: scale(2.8); opacity: 0; } }
.pulses-note { max-width: 46em; margin: 22px auto 0; font-size: 14.5px; line-height: 1.6; text-align: center; color: var(--muted); text-wrap: pretty; }
.pulses-note a { color: var(--text); font-weight: 600; text-decoration: none; white-space: nowrap; }
.pulses-note a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) {
  .pulses-panel { grid-template-columns: 1fr; }
  .pulse-meter { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .pulses-brand { font-size: 24px; }
  .pulses-brand img { width: 38px; height: 38px; }
  .pulses-steps li { gap: 14px; padding: 18px 0; }
  .pm-card { padding: 16px; }
  .pm-total b { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) { .pm-pulse::after { animation: none; } .pm-bar i { transition: none; } }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.steps > .card::before { counter-increment: step; content: "0" counter(step); display: block; margin-bottom: 22px; font: 500 12px/1 var(--mono); color: var(--accent-ink); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Definition table (docs style) ---------- */
.dtable { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); }
.dtable > div { display: grid; grid-template-columns: minmax(150px, 240px) minmax(0, 1fr); gap: 6px 32px; padding: 20px clamp(18px, 2.4vw, 28px); }
.dtable > div + div { border-top: 1px solid var(--line); }
.dtable dt { font: 600 15px/1.5 var(--sans); color: var(--text); }
.dtable dd { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
@media (max-width: 640px) { .dtable > div { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- Plans ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.plan h3 { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 18px; }
.plan-tag { margin-top: 4px; font-size: 13.5px; color: var(--muted); }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin-top: 22px; }
.plan-price strong { font: 700 34px/1 var(--sans); letter-spacing: -.035em; color: var(--text); }
.plan-price span { font-size: 13.5px; color: var(--muted); }
.plan-facts { list-style: none; display: grid; gap: 11px; margin: 22px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); }
.plan-facts li { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.plan-facts li b { font-weight: 600; text-align: right; color: var(--text); }
@media (max-width: 960px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .plans { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 2px; cursor: pointer; list-style: none; font: 500 16px/1.4 var(--sans); color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px; color: var(--muted);
  background: linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat;
  transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--text); }
.faq-a { max-width: 66ch; padding: 0 2px 22px; font-size: 15px; line-height: 1.65; color: var(--muted); }
.faq-a a { color: var(--text); text-underline-offset: 3px; }

/* ---------- Writing ---------- */
.posts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.post-card { min-height: 236px; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font: 500 12px/1 var(--mono); letter-spacing: .02em; color: var(--muted); }
.post-card h3 { margin-top: 22px; font: 400 clamp(21px, 2vw, 25px)/1.22 var(--serif); letter-spacing: -.02em; }
.post-card p { margin-top: 10px; }
.post-more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 22px; font: 600 13.5px/1 var(--sans); color: var(--text); }
.post-more span { transition: transform .18s var(--ease); }
a.card:hover .post-more span { transform: translateX(3px); }
@media (max-width: 720px) { .posts { grid-template-columns: 1fr; } .post-card { min-height: 0; } }
.rows { overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); }
.rows a { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px 22px; text-decoration: none; transition: background-color .15s; }
.rows a + a { border-top: 1px solid var(--line); }
.rows a:hover { background: var(--panel-2); }
.row-meta { font: 500 12px/1.3 var(--mono); color: var(--muted); }
.row-title { font: 500 15.5px/1.45 var(--sans); color: var(--text); }
.row-arrow { color: var(--muted); }
@media (max-width: 640px) { .rows a { grid-template-columns: 1fr; gap: 6px; } .row-arrow { display: none; } }

/* ---------- Panels, notes, quotes ---------- */
.cta-panel { position: relative; isolation: isolate; overflow: hidden; padding: clamp(48px, 7vw, 96px) clamp(22px, 5vw, 64px); border: 1px solid var(--line); border-radius: 24px; background: var(--panel); text-align: center; }
.cta-panel::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(var(--dot) 1px, transparent 1.3px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 60% 80% at 50% 50%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse 60% 80% at 50% 50%, #000 10%, transparent 70%);
}
.cta-panel h2 { max-width: 15em; margin-inline: auto; }
.cta-panel .site-lede { margin: 16px auto 0; }
.cta-panel .site-actions { justify-content: center; margin-top: 28px; }
.note { position: relative; padding: 18px 20px 18px 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.note::before { content: ""; position: absolute; top: -1px; bottom: -1px; left: -1px; width: 3px; border-radius: 12px 0 0 12px; background: var(--accent); }
.note b { display: block; margin-bottom: 4px; font-weight: 600; color: var(--text); }
.note a { color: var(--text); text-underline-offset: 3px; }
.quote { max-width: 920px; margin-inline: auto; text-align: center; }
.quote p { font: 400 clamp(24px, 3vw, 38px)/1.3 var(--serif); letter-spacing: -.02em; color: var(--text); text-wrap: balance; }
.quote footer { margin-top: 22px; font: 500 12px/1 var(--mono); letter-spacing: .04em; color: var(--muted); }
.empty { display: flex; align-items: flex-start; gap: 16px; }
.empty .card-icon { margin: 0; }
.empty h3 + p { margin-top: 4px; }
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.split .site-prose p { font-size: 16.5px; line-height: 1.7; color: var(--text-2); }
.site-prose p + p { margin-top: 1.1em; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---------- Architecture layers ---------- */
.layers { margin: 0; }
.layer { position: relative; padding: 38px clamp(12px, 2.2vw, 22px) clamp(12px, 2.2vw, 22px); border: 1px solid var(--line-2); border-radius: 16px; }
.layers > .layer { background: var(--panel); }
.layer > span { position: absolute; top: 13px; left: clamp(12px, 2.2vw, 22px); font: 600 10.5px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.layer--core { min-height: 72px; border-color: var(--accent); background: var(--panel-2); }
.layer--core > span { color: var(--accent-ink); }

/* ---------- Articles ---------- */
.article-head { padding-block: clamp(48px, 7vw, 96px) clamp(28px, 3.5vw, 44px); text-align: center; }
.article-head .post-meta { justify-content: center; }
.article-head h1 { max-width: 16em; margin: 22px auto 0; font-size: clamp(34px, 4.6vw, 58px); line-height: 1.06; }
.article-head .site-lede { margin: 18px auto 0; }
.article-body { max-width: 680px; margin-inline: auto; padding-block: clamp(32px, 4vw, 48px) clamp(56px, 7vw, 96px); border-top: 1px solid var(--line); }
.article-body p, .article-body li { font-size: 17px; line-height: 1.78; color: var(--text-2); }
.article-body p + p { margin-top: 1.2em; }
.article-body .lead { margin-bottom: 1.4em; font: 400 clamp(20px, 2vw, 23px)/1.5 var(--serif); letter-spacing: -.01em; color: var(--text); }
.article-body h2 { margin: 2em 0 .6em; font: 600 clamp(20px, 2vw, 23px)/1.3 var(--sans); letter-spacing: -.02em; }
.article-body blockquote { margin: 2em 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--accent); font: 400 clamp(20px, 2.2vw, 25px)/1.4 var(--serif); letter-spacing: -.01em; color: var(--text); }
.article-body ul, .article-body ol { margin: 1em 0 0; padding-left: 1.2em; }
.article-body strong { color: var(--text); }

/* ---------- Forms ---------- */
.form-card { --pad: clamp(22px, 3vw, 36px); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.field { display: grid; align-content: start; gap: 7px; font: 500 13.5px/1.4 var(--sans); color: var(--text); }
.field-label { display: block; }
.field small { margin-left: 4px; font-size: 12px; font-weight: 400; color: var(--muted); }
.field--wide { grid-column: 1 / -1; }
.form-grid :is(input, select, textarea) {
  width: 100%; height: 44px; padding: 0 13px; border: 1px solid var(--line-2); border-radius: 10px;
  background: var(--bg); color: var(--text); font: 400 15px/1.4 var(--sans);
  -webkit-appearance: none; appearance: none; transition: border-color .15s, box-shadow .15s;
}
.form-grid textarea { height: auto; min-height: 104px; padding: 11px 13px; line-height: 1.55; resize: vertical; }
.form-grid select {
  padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m2.5 4.5 3.5 3.5 3.5-3.5' fill='none' stroke='%238a8a8a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 12px;
}
.form-grid :is(input, select, textarea):hover { border-color: var(--faint); }
.form-grid :is(input, select, textarea):focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--text) 14%, transparent); }
.form-grid ::placeholder { color: var(--faint); }
.form-grid [aria-invalid="true"] { border-color: var(--danger); }
.phone-field { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 8px; }
.form-fieldset { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 14px 16px 16px; border: 1px solid var(--line); border-radius: 12px; }
.form-fieldset legend { padding: 0 6px; font: 500 13.5px/1.4 var(--sans); }
.form-fieldset legend small { font-weight: 400; color: var(--muted); }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 4px; }
.form-status { font-size: 14px; line-height: 1.5; color: var(--danger); white-space: pre-line; }
.form-status:empty { display: none; }
.form-confirm { align-items: center; padding: clamp(40px, 6vw, 72px) clamp(20px, 4vw, 48px); text-align: center; }
.form-confirm-mark { width: 48px; height: 48px; display: grid; place-items: center; margin: 0 auto 22px; border-radius: 50%; background: var(--live-bg); color: var(--live); }
.form-confirm-mark svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.form-confirm h2 { font-size: clamp(28px, 3.4vw, 40px); }
.form-confirm p { max-width: 34em; margin-inline: auto; }
.form-confirm .site-actions { justify-content: center; margin-top: 24px; }
.form-layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 16px; align-items: start; }
.form-aside { display: grid; gap: 16px; }
@media (max-width: 900px) { .form-layout { grid-template-columns: 1fr; } .form-aside { order: 2; } }
@media (max-width: 640px) {
  .form-grid, .form-fieldset { grid-template-columns: 1fr; }
  .form-grid :is(input, select, textarea) { font-size: 16px; }
  .form-actions .site-btn { width: 100%; }
}

/* ---------- Legal and documentation pages ---------- */
.legal-head { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(48px, 6.5vw, 88px) clamp(28px, 3.5vw, 44px); border-bottom: 1px solid var(--line); }
.legal-head::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(var(--dot) 1px, transparent 1.3px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 55% 90% at 15% 30%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse 55% 90% at 15% 30%, #000 10%, transparent 70%);
}
.legal-head h1 { max-width: 14em; font-size: clamp(34px, 4.4vw, 58px); line-height: 1.05; letter-spacing: -.035em; }
.legal-head .site-lede { margin-top: 16px; max-width: 38em; font-size: clamp(16px, 1.2vw, 17.5px); }
.legal-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; }
.legal-meta span { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel-2); font: 500 11.5px/1 var(--mono); letter-spacing: .02em; color: var(--muted); }
.legal-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); padding-block: clamp(36px, 4.5vw, 60px) var(--section); }
.legal-body { min-width: 0; max-width: 720px; }
.legal-toc { position: sticky; top: calc(var(--header) + 28px); align-self: start; max-height: calc(100vh - var(--header) - 56px); overflow: auto; font-size: 13px; line-height: 1.4; scrollbar-width: thin; }
.legal-toc summary { padding: 2px 0 12px; list-style: none; cursor: pointer; font: 600 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.legal-toc summary::-webkit-details-marker { display: none; }
.legal-toc ol { list-style: none; display: grid; gap: 1px; margin: 0; padding: 0; }
.legal-toc a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--muted); text-decoration: none; transition: color .15s, background-color .15s; }
.legal-toc a:hover { color: var(--text); background: var(--panel-2); }
.legal-toc a.is-active { color: var(--text); background: var(--panel-2); }
.legal-intro { margin-bottom: 26px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.legal-body > section { padding-block: 26px; scroll-margin-top: calc(var(--header) + 20px); }
.legal-body > section + section { border-top: 1px solid var(--line); }
.legal-body > section:first-of-type { padding-top: 0; }
.legal-body h2 { display: flex; align-items: baseline; gap: 12px; margin: 0 0 12px; font: 600 clamp(19px, 1.7vw, 22px)/1.3 var(--sans); letter-spacing: -.02em; }
.legal-body h2 .n { flex: none; min-width: 20px; font: 500 11.5px/1 var(--mono); letter-spacing: .02em; color: var(--accent-ink); }
.legal-body h3 { margin: 22px 0 6px; font: 600 14.5px/1.4 var(--sans); }
.legal-body p, .legal-body li { font-size: 15.5px; line-height: 1.72; color: var(--text-2); }
.legal-body strong { font-weight: 600; color: var(--text); }
.legal-body p + p, .legal-body p + ul, .legal-body ul + p, .legal-body p + .legal-table-wrap, .legal-body .legal-table-wrap + p, .legal-body ul + .confirm-block { margin-top: .85em; }
.legal-body ul { display: grid; gap: 4px; margin: 0; padding-left: 1.15em; }
.legal-body li::marker { color: var(--faint); }
.legal-body a { text-decoration: underline; text-decoration-color: var(--line-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.legal-body a:hover { text-decoration-color: currentColor; }
.legal-summary { margin-bottom: 36px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel-2); }
.legal-summary h2 { display: block; margin: 0 0 14px; font: 600 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.legal-summary ul { gap: 8px; }
.legal-summary li { font-size: 15px; line-height: 1.6; }
.legal-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; -webkit-overflow-scrolling: touch; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.legal-table th, .legal-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal-table tbody tr:last-child td { border-bottom: 0; }
.legal-table th { background: var(--panel-2); font: 600 11px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; color: var(--muted); }
.legal-table td:first-child { font-weight: 500; white-space: nowrap; color: var(--text); }
.legal-table td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.legal-related { padding-block: 32px clamp(56px, 6vw, 88px); border-top: 1px solid var(--line); }
.legal-related .site-eyebrow { margin-bottom: 14px; }
.legal-related ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; }
.legal-related a { display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); font: 600 13.5px/1 var(--sans); text-decoration: none; transition: border-color .15s, background-color .15s; }
.legal-related a:hover { border-color: var(--line-2); background: var(--panel-3); }
/* Facts awaiting confirmation in drafts/. `npm run release-check` lists them. */
:root { --flag: #c79a4a; --flag-ink: #d9b16b; --flag-bg: rgba(199, 154, 74, .1); }
html[data-theme="light"] { --flag: #9a6a14; --flag-ink: #7a520c; --flag-bg: rgba(154, 106, 20, .08); }
.confirm { padding: 1px 5px; border: 1px dashed var(--flag); border-radius: 4px; background: var(--flag-bg); color: var(--text); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.confirm-block { display: block; margin-top: .85em; padding: 12px 14px; border: 1px dashed var(--flag); border-radius: 8px; background: var(--flag-bg); font-size: 14px !important; line-height: 1.55 !important; }
.confirm-block::before { content: "To confirm"; display: block; margin-bottom: 5px; font: 600 9.5px/1.2 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--flag-ink); }
.draft-banner { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; max-width: 46em; margin-top: 22px; padding: 10px 14px; border: 1px dashed var(--flag); border-radius: 8px; background: var(--flag-bg); font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.draft-banner b { font: 600 9.5px/1.2 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--flag-ink); }
@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; gap: 20px; padding-top: 24px; }
  .legal-body { max-width: none; }
  .legal-toc { position: static; max-height: none; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); font-size: 14px; }
  .legal-toc summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0; }
  .legal-toc summary::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
  .legal-toc[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
  .legal-toc ol { padding-bottom: 10px; }
  .legal-toc a { padding-block: 8px; }
  .legal-summary { padding: 18px; margin-bottom: 28px; }
  .legal-body > section { padding-block: 22px; }
}
@media (max-width: 560px) {
  .legal-table-wrap { overflow: visible; border: 0; border-radius: 0; }
  .legal-table, .legal-table tbody, .legal-table tr, .legal-table td { display: block; width: 100%; }
  .legal-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .legal-table tr { padding: 6px 0 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
  .legal-table tr + tr { margin-top: 8px; }
  .legal-table td { padding: 3px 14px; border: 0; white-space: normal; }
  .legal-table td:first-child { padding-top: 8px; padding-bottom: 6px; font-size: 15px; white-space: normal; }
  .legal-table td[data-label] { display: flex; justify-content: space-between; gap: 16px; }
  .legal-table td[data-label]::before { content: attr(data-label); font: 600 10px/1.9 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
}

/* ---------- Footer: inverted — space black in light mode, white in dark mode ---------- */
.site-footer {
  --idrok-mark: #10110F; --tensor-mark: #5C7A36;
  --bg: #ffffff; --bg-2: #fafafa; --panel: #ffffff; --panel-2: #f6f6f6; --panel-3: #eeeeee;
  --line: #e8e8e8; --line-2: #d4d4d4; --text: #111111; --text-2: #3b3b3b; --muted: #666666; --faint: #8c8c8c;
  --accent: #647945; --accent-ink: #55693a;
  color-scheme: light;
  flex: none; margin-top: auto; padding-block: clamp(56px, 7vw, 88px) 28px; background: var(--bg); color: var(--text);
}
html[data-theme="light"] .site-footer {
  --idrok-mark: #F5F4EC; --tensor-mark: #9DBE75;
  --bg: #0b0b0b; --bg-2: #0f0f0f; --panel: #131313; --panel-2: #191919; --panel-3: #212121;
  --line: #242424; --line-2: #353535; --text: #ededed; --text-2: #c8c8c8; --muted: #9a9a9a; --faint: #6b6b6b;
  --accent: #9eae78; --accent-ink: #aebd8f;
  color-scheme: dark;
}
.site-footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 36px clamp(24px, 4vw, 56px); }
.site-footer-brand p { max-width: 24em; margin-top: 16px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.site-footer-brand .site-actions { margin-top: 20px; }
.site-footer h2 { margin: 4px 0 14px; font: 600 13px/1.3 var(--sans); letter-spacing: 0; color: var(--text); }
.site-footer ul { list-style: none; display: grid; gap: 10px; margin: 0; padding: 0; }
.site-footer li a { font-size: 14px; color: var(--muted); text-decoration: none; transition: color .15s; }
.site-footer li a:hover { color: var(--text); }
.site-footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 32px; margin-top: clamp(40px, 5vw, 64px); padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.55; color: var(--muted); }
@media (max-width: 860px) { .site-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .site-footer-brand { grid-column: 1 / -1; } }
@media (max-width: 640px) {
  .site-footer { padding-top: 48px; }
  .site-footer-grid { gap: 32px 20px; }
  .site-footer ul { gap: 0; }
  .site-footer li a { display: block; padding: 8px 0; font-size: 15px; }
  .site-footer h2 { margin-bottom: 6px; }
  .site-footer-grid > div:last-child { grid-column: 1 / -1; }
  .site-footer-base { flex-direction: column; gap: 4px; }
}

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .site *, .site *::before, .site *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; }
}

/* ---------- Phones ---------- */
:where(body.site) :where(a, button, summary) { -webkit-tap-highlight-color: transparent; }
/* Bigger touch targets without moving the layout. */
.site-brand { padding-block: 9px; margin-block: -9px; }
@media (pointer: coarse) {
  .site-link, .post-more { padding-block: 11px; margin-block: -11px; }
  .back-link { padding-block: 14px; margin-block: -14px; }
  .site-footer-base a, .legal-body a, .faq-a a, .card p a { padding-block: 4px; }
}
@media (hover: none) { a.card:active { transform: scale(.985); } }
@media (max-width: 640px) {
  :root { --header: 60px; --section: 72px; }
  body.site { font-size: 15px; }
  .site-header-inner { gap: 12px; }
  .site-header-tools { gap: 6px; }
  .site-icon-btn { width: 36px; height: 36px; }
  .site-header-tools .site-btn--accent { display: inline-flex; --h: 34px; padding: 0 11px; font-size: 13px; border-radius: 9px; }
  .hero { padding-top: 44px; }
  .hero .site-lede { margin-top: 16px; }
  .hero .site-actions { margin-top: 24px; }
  .hero .site-actions .site-btn, .cta-panel .site-actions .site-btn { flex: 1 1 140px; }
  .hero-media { margin-top: 36px; }
  .section-head { margin-bottom: 32px; }
  .section-head .site-actions .site-btn { flex: 1 1 140px; }
  .window { padding: 4px; border-radius: 14px; }
  .window img { border-radius: 10px; }
  .cta-panel { padding: 44px 20px; border-radius: 18px; }
  .card { --pad: 20px; }
  .feature-copy .site-actions .site-btn { flex: 1 1 140px; }
  .faq summary { padding: 18px 0; font-size: 15.5px; }
  .int-group { padding: 18px; }
}
@media (max-width: 359px) { .site-header-tools .site-btn--accent { display: none; } }

/* Swipe rows: on phones, a grid becomes a horizontal row of cards that snaps.
   Kept last so it overrides the column rules of the grids it is applied to. */
.swipe-hint { display: none; }
@media (max-width: 640px) {
  .swipe { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 84%; gap: 12px; margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 8px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .swipe::-webkit-scrollbar { display: none; }
  .swipe > * { scroll-snap-align: start; }
  .swipe-hint { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; font-size: 13px; color: var(--muted); }
  .swipe-hint::after { content: "→"; }
}

/* ---------- Home: faded logos behind the hero, and the integrations strip ---------- */
.hero-logos { position: absolute; inset: 0 0 auto; height: min(720px, 100%); z-index: -1; overflow: hidden; pointer-events: none; filter: grayscale(1); }
.hero-logos svg { position: absolute; width: var(--s); height: var(--s); fill: var(--text); opacity: .07; transform: rotate(var(--r)); animation: hl-drift 16s ease-in-out var(--d) infinite alternate; }
html[data-theme="light"] .hero-logos svg { opacity: .085; }
@keyframes hl-drift { from { transform: rotate(var(--r)) translateY(-6px); } to { transform: rotate(calc(var(--r) + 4deg)) translateY(6px); } }
@media (max-width: 760px) { .hero-logos .hl-hide-m { display: none; } .hero-logos svg { width: calc(var(--s) * .8); height: calc(var(--s) * .8); } }
.logo-band { padding-block: clamp(36px, 5vw, 64px) 0; overflow: hidden; }
.logo-band-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; margin-bottom: 22px; }
.logo-band-head p { max-width: 40em; font-size: 15.5px; line-height: 1.55; color: var(--muted); }
.logo-band-head b { font-weight: 600; color: var(--text); }
.marquee { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee-track { display: flex; flex: none; gap: 10px; margin: 0; padding: 4px 5px; list-style: none; animation: marquee 320s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track li { display: flex; align-items: center; gap: 9px; height: 44px; padding: 0 16px 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); font: 500 14px/1 var(--sans); color: var(--text-2); white-space: nowrap; }
.marquee-track .chip { height: 20px; padding: 0 7px; font-size: 11px; }
.mq-logo { width: 20px; height: 20px; flex: none; }
html[data-theme="dark"] .mq-logo.is-ink { fill: var(--text) !important; }
@keyframes marquee { to { transform: translateX(calc(-100% - 10px)); } }
.logo-band-note { margin-top: 16px; font-size: 13px; color: var(--muted); }
.logo-band-note a { color: var(--text); text-underline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .hero-logos svg { animation: none; }
  .marquee { overflow-x: auto; scrollbar-width: none; }
  .marquee-track { animation: none; }
  .marquee-track[aria-hidden="true"] { display: none; }
}
@media (max-width: 640px) { .marquee-track { animation-duration: 240s; } .marquee-track li { height: 40px; font-size: 13.5px; } }

/* Home order: hero text → integrations strip → product screenshot. */
.hero--logos { padding-bottom: 0; }
.hero--logos .hero-logos { height: calc(100% + 220px); }
.logo-band { position: relative; padding-block: clamp(36px, 4.5vw, 56px) 0; }
.logo-band-head { flex-direction: column; justify-content: center; text-align: center; gap: 12px; margin-bottom: 20px; }
.logo-band-head p { margin-inline: auto; }
.logo-band-head .chips { justify-content: center; }
.logo-band-note { text-align: center; }
@media (max-width: 640px) {
  .logo-band { padding-top: 32px; }
  .logo-band-head p { font-size: 14.5px; }
  .logo-band-head p span { display: block; margin-top: 2px; }
  .marquee { -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
  .marquee-track { gap: 8px; animation-duration: 200s; }
  .marquee-track li { gap: 8px; padding: 0 13px 0 10px; }
  .mq-logo { width: 18px; height: 18px; }
  .logo-band-note { margin-top: 12px; }
}

/* ---------- Illustrations (built in HTML, animated by site.js) ---------- */
.demo-stage { position: relative; }
.js [data-demo] [data-at]:not(.demo-btn):not(.lit-step), .js [data-demo-set] [data-at]:not(.demo-btn) { display: none; }
.js [data-demo] [data-at].is-on:not(.demo-btn):not(.lit-step), .js [data-demo-set] [data-at].is-on:not(.demo-btn) { display: block; animation: demo-in .45s var(--ease) both; }
@keyframes demo-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.demo-chat, .demo-idrok { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--panel); box-shadow: var(--shadow-lg); }
.demo-chat-head, .demo-idrok-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--panel-2); }
.demo-chat-head > div { flex: 1; min-width: 0; }
.demo-chat-head b, .demo-idrok-head b { display: block; font: 600 15px/1.3 var(--sans); }
.demo-chat-head small, .demo-idrok-head small { font-size: 12.5px; color: var(--muted); }
.demo-idrok-head .card-icon { width: 34px; height: 34px; margin: 0; }
.demo-idrok-head small { margin-left: auto; }
.demo-chat-body, .demo-idrok-body { display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; height: 380px; padding: 18px 16px; overflow: hidden;
  background-image: radial-gradient(var(--dot) 1px, transparent 1.3px); background-size: 18px 18px; }
.demo-idrok-body { height: 430px; }
.bubble { max-width: 80%; padding: 10px 14px; border-radius: 18px; font-size: 14.5px; line-height: 1.45; }
.bubble--in { align-self: flex-start; border: 1px solid var(--line); border-bottom-left-radius: 6px; background: var(--panel); color: var(--text); }
.bubble--out { align-self: flex-end; border-bottom-right-radius: 6px; background: #2b8fd6; color: #fff; }
.bubble--me { align-self: flex-end; border-bottom-right-radius: 6px; background: var(--invert); color: var(--invert-text); }
.typing { align-self: flex-end; padding: 12px 14px; border-radius: 18px; border-bottom-right-radius: 6px; background: var(--panel-3); }
.demo-idrok-body .typing { align-self: flex-start; border-radius: 18px; border-bottom-left-radius: 6px; }
.typing i { display: inline-block; width: 6px; height: 6px; margin: 0 2px; border-radius: 50%; background: var(--muted); animation: typing 1s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-3px); opacity: 1; } }
.demo-idrok-text { max-width: 90%; font-size: 14.5px; line-height: 1.5; color: var(--text-2); }
.demo-stage:has(.demo-approval) { padding-bottom: 116px; }
.demo-stage:has(.demo-approval) .window-caption { max-width: calc(100% - 300px); text-align: left; }
.demo-approval { position: absolute; right: -18px; bottom: 6px; width: min(300px, 78%); z-index: 2; }
.demo-approval-card, .demo-hire { padding: 16px; border: 1px solid var(--line-2); border-radius: 16px; background: var(--panel); box-shadow: var(--shadow-md); }
.demo-approval-card b { display: block; margin-top: 4px; font: 600 15px/1.35 var(--sans); }
.demo-approval-card small { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.demo-kicker { font: 600 10.5px/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); }
.demo-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.demo-btn { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); font: 600 13px/1 var(--sans); color: var(--text); transition: background-color .25s, color .25s, transform .15s; }
.demo-btn--go { border-color: transparent; background: var(--invert); color: var(--invert-text); }
.demo-btn--go.is-on { background: var(--accent-btn); color: #fff; animation: press .35s var(--ease); }
.demo-btn--go.is-on::after { content: " ✓"; white-space: pre; }
@keyframes press { 40% { transform: scale(.94); } }
.demo-hire dl { display: grid; margin: 10px 0 0; }
.demo-hire dl div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.demo-hire dt { color: var(--muted); }
.demo-hire dd { margin: 0; font-weight: 600; color: var(--text); }
.js [data-demo] .demo-done.is-on { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 900px) {
  .demo-approval { right: 10px; }
}
@media (max-width: 640px) {
  .demo-chat-body { height: 340px; padding: 14px 12px; }
  .demo-idrok-body { height: 440px; padding: 14px 12px; }
  .bubble { max-width: 86%; font-size: 14px; }
  .demo-stage:has(.demo-approval) { padding-bottom: 0; }
  .demo-stage:has(.demo-approval) .window-caption { max-width: none; text-align: center; }
  .demo-approval { position: relative; right: auto; bottom: auto; width: auto; margin: 12px 0 0; min-height: 150px; }
}

/* Request path: a pulse travels through each layer. */
.req-path { position: relative; padding: clamp(24px, 3vw, 36px); overflow: hidden; }
.req-path ol { position: relative; z-index: 1; list-style: none; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; }
.req-path li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.req-path li b { margin-top: 12px; font: 600 14.5px/1.3 var(--sans); }
.req-path li small { max-width: 14em; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.flow-dot { width: 18px; height: 18px; border: 2px solid var(--line-2); border-radius: 50%; background: var(--panel); animation: node-lit 6s infinite; animation-delay: calc(var(--i) * 1s); }
.req-path li:nth-child(4) .flow-dot { border-radius: 6px; }
@keyframes node-lit { 0% { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 22%, transparent); } 14% { border-color: var(--accent); background: var(--panel); box-shadow: none; } 100% { border-color: var(--line-2); background: var(--panel); } }
.req-line { position: absolute; top: calc(clamp(24px, 3vw, 36px) + 8px); left: calc(clamp(24px, 3vw, 36px) + (100% - 2 * clamp(24px, 3vw, 36px)) / 12); right: calc(clamp(24px, 3vw, 36px) + (100% - 2 * clamp(24px, 3vw, 36px)) / 12); height: 2px; background: var(--line); }
.req-line i { position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); animation: pulse-run 6s linear infinite; }
@keyframes pulse-run { 0% { left: 0; opacity: 1; } 83% { left: 100%; opacity: 1; } 84%, 100% { left: 100%; opacity: 0; } }
@media (max-width: 760px) {
  .req-path ol { grid-template-columns: 1fr; gap: 18px; }
  .req-path li { flex-direction: row; align-items: flex-start; text-align: left; gap: 0 14px; display: grid; grid-template-columns: 18px minmax(0, 1fr); }
  .req-path li b { margin-top: -1px; }
  .req-path li small { grid-column: 2; max-width: none; }
  .req-line { top: calc(24px + 9px); bottom: 40px; left: calc(24px + 8px); right: auto; width: 2px; height: auto; }
  .req-line i { top: 0; left: -3px; animation-name: pulse-run-v; }
  @keyframes pulse-run-v { 0% { top: 0; opacity: 1; } 83% { top: 100%; opacity: 1; } 84%, 100% { top: 100%; opacity: 0; } }
}
@media (prefers-reduced-motion: reduce) { .flow-dot, .req-line i, .typing i { animation: none; } .req-line i { display: none; } }

/* ---------- Illustration sets (tabs) ---------- */
.demo-tabs { display: none; }
.js .demo-tabs { display: flex; gap: 4px; width: fit-content; max-width: 100%; margin: 0 auto 16px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); }
.demo-tabs button { height: 34px; padding: 0 14px; border: 1px solid transparent; border-radius: 9px; background: transparent; font: 500 13.5px/1 var(--sans); color: var(--muted); cursor: pointer; }
.demo-tabs button[aria-selected="true"] { border-color: var(--line); background: var(--panel); color: var(--text); box-shadow: var(--shadow-sm); }
.demo-panel { position: relative; }
.demo-panel + .demo-panel { margin-top: 28px; }
.js .demo-panel:not(.is-active) { display: none; }
.js .demo-panel + .demo-panel { margin-top: 0; }
.demo-set .demo-panels { padding-bottom: 116px; }
.demo-set .demo-approval { bottom: -106px; }
.demo-set .window-caption { max-width: calc(100% - 300px); text-align: left; margin-top: -96px; }
@media (max-width: 640px) {
  .demo-set .demo-panels { padding-bottom: 0; }
  .demo-set .demo-approval { bottom: auto; }
  .demo-set .window-caption { max-width: none; text-align: center; margin-top: 14px; }
}

/* ---------- Idrok replica ---------- */
.ix { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--panel); box-shadow: var(--shadow-lg); }
.ix-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.ix-head b { display: block; font: 600 16px/1.2 var(--sans); }
.ix-head small { display: block; max-width: 30ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--muted); }
.ix-mark, .ix-who img { height: auto; }
html[data-theme="dark"] .ix-mark, html[data-theme="dark"] .ix-who img { filter: invert(1); }
.ix-body { display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; height: 470px; padding: 18px; overflow: hidden; }
.ix-user { display: none; align-self: flex-end; max-width: 85%; padding: 11px 15px; border: 1px solid var(--line-2); border-radius: 16px; background: var(--panel-2); font-size: 14.5px; line-height: 1.45; color: var(--text); }
.ix-turn, .ix-card, .ix-approved { display: none; }
.ix-user.is-on, .ix-turn.is-on, .ix-card.is-on { display: block; animation: demo-in .45s var(--ease) both; }
.ix-approved.is-on { display: block; align-self: flex-end; padding: 9px 14px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--panel-2); font: 500 13.5px/1.3 var(--sans); animation: demo-in .45s var(--ease) both; }
.ix-who { display: flex; align-items: center; gap: 8px; font: 500 14px/1 var(--sans); color: var(--muted); }
.ix-worked { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.ix-spin { width: 13px; height: 13px; border: 2px solid var(--line-2); border-top-color: var(--text); border-radius: 50%; animation: ix-spin .8s linear infinite; }
.ix-worked.is-done .ix-spin { display: none; }
.ix-worked:not(.is-done)::after { content: ""; }
.ix-check { font-size: 12px; }
@keyframes ix-spin { to { transform: rotate(360deg); } }
.ix-card { margin-top: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.ix-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ix-card-top b { font: 600 14.5px/1.3 var(--sans); }
.ix-card-top .chip { height: 22px; font-size: 11.5px; }
.ix-card-sum { margin-top: 6px; font-size: 13.5px; line-height: 1.45; color: var(--text-2); }
.ix-card dl { display: grid; margin: 8px 0 0; }
.ix-card dl div { display: grid; grid-template-columns: 90px minmax(0, 1fr); padding: 6px 0; border-top: 1px solid var(--line); font-size: 13px; }
.ix-card dt { color: var(--muted); }
.ix-card dd { margin: 0; color: var(--text); }
.ix-card-note { margin-top: 8px; font-size: 12px; color: var(--muted); }
.ix-card-actions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
.ix-btn { display: inline-flex; align-items: center; height: 30px; padding: 0 11px; border-radius: 8px; font: 600 13px/1 var(--sans); color: var(--text); }
.ix-btn--go { background: var(--invert); color: var(--invert-text); transition: background-color .25s, transform .15s; }
.ix-btn--go.is-pressed { background: var(--accent-btn); color: #fff; transform: scale(.96); }
.ix-reply { margin-top: 10px; font-size: 14.5px; line-height: 1.55; color: var(--text); }
.ix-composer { margin: 0 14px 14px; padding: 12px 14px 10px; border: 1px solid var(--line-2); border-radius: 18px; background: var(--panel); }
.ix-input { min-height: 22px; font-size: 14.5px; line-height: 1.5; color: var(--text); }
.ix-ph { color: var(--faint); }
.ix-caret { display: none; width: 1.5px; height: 1.1em; margin-left: 1px; background: var(--text); vertical-align: -3px; animation: ix-blink 1s steps(1) infinite; }
.ix-caret.is-on { display: inline-block; }
@keyframes ix-blink { 50% { opacity: 0; } }
.ix-tools { display: flex; align-items: center; gap: 14px; margin-top: 10px; font: 600 13px/1 var(--sans); color: var(--muted); }
.ix-plus { font-size: 18px; font-weight: 400; color: var(--text); }
.ix-mode { display: inline-flex; align-items: center; gap: 6px; }
.ix-mode svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.ix-send { margin-left: auto; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--panel-3); color: var(--muted); font-size: 15px; transition: background-color .2s, color .2s; }
.ix-send.is-ready { background: var(--invert); color: var(--invert-text); }
.ix-cursor { position: absolute; top: 0; left: 0; z-index: 5; width: 22px; height: 22px; margin: -3px 0 0 -5px; fill: #111; stroke: #fff; stroke-width: 1.4; stroke-linejoin: round; filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); opacity: 0; transition: transform .9s cubic-bezier(.45, 0, .2, 1), opacity .3s; pointer-events: none; }
html[data-theme="dark"] .ix-cursor { fill: #fff; stroke: #111; }
.ix-cursor.is-on { opacity: 1; }
.ix-cursor.is-click { animation: ix-click .35s ease; }
@keyframes ix-click { 40% { scale: .82; } }
@media (max-width: 640px) {
  .ix-body { height: 440px; padding: 14px 12px; }
  .ix-card dl div { grid-template-columns: 74px minmax(0, 1fr); }
  .ix-composer { margin: 0 10px 10px; }
  .ix-tools .ix-mode { font-size: 12.5px; }
}

/* ---------- Request trace (Technology) ---------- */
.trace { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 16px; align-items: stretch; }
.trace-stack { list-style: none; display: grid; gap: 8px; margin: 0; padding: 0; }
.trace-stack li { display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: center; gap: 2px 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); transition: border-color .35s, background-color .35s, box-shadow .35s, transform .35s var(--ease); }
.trace-stack li b { font: 600 14.5px/1.3 var(--sans); }
.trace-stack li small { grid-column: 2; font-size: 12.5px; color: var(--muted); }
.tr-n { grid-row: span 2; width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: var(--panel-2); font: 500 11.5px/1 var(--mono); color: var(--muted); transition: inherit; }
.trace-stack li.is-on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--panel)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent); transform: translateX(4px); }
.trace-stack li.is-on .tr-n { border-color: var(--accent); background: var(--accent); color: #fff; }
.trace-log { display: flex; flex-direction: column; overflow: hidden; border: 1px solid #262626; border-radius: 18px; background: #0d0d0d; color: #e6e6e6; box-shadow: var(--shadow-lg); }
.trace-log-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #222; }
.trace-log-head b { font: 600 13px/1 var(--sans); }
.trace-log-head small { margin-left: auto; font: 500 12px/1 var(--mono); color: #8a8a8a; }
.trace-dots { display: flex; gap: 6px; }
.trace-dots i { width: 10px; height: 10px; border-radius: 50%; background: #333; }
.trace-rows { list-style: none; display: flex; flex-direction: column; gap: 4px; min-height: 430px; margin: 0; padding: 14px; }
.trace-rows li { display: none; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; padding: 10px 12px; border-radius: 10px; }
.trace-rows li.is-on { display: grid !important; animation: demo-in .45s var(--ease) both; }
.trace-rows li:last-child.is-on, .trace-rows li.is-on:has(+ li:not(.is-on)) { background: #161616; }
.trace-rows b { display: block; font: 500 14px/1.4 var(--sans); color: #f2f2f2; }
.trace-rows small { display: block; margin-top: 2px; font: 400 12.5px/1.45 var(--mono); color: #8f8f8f; }
.tr-tag { align-self: start; justify-self: start; padding: 3px 7px; border-radius: 6px; font: 600 11px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .04em; }
.tr-tag--in { background: rgba(43, 143, 214, .16); color: #7cc0f0; }
.tr-tag--ok { background: rgba(126, 186, 104, .16); color: #a7d98f; }
.tr-tag--hold { background: rgba(214, 160, 60, .16); color: #e9c06f; }
.js .trace [data-at].lit-step { display: grid; }
@media (max-width: 860px) {
  .trace { grid-template-columns: 1fr; }
  .trace-stack { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .trace-stack li { grid-template-columns: 1fr; justify-items: start; padding: 10px; }
  .trace-stack li small { display: none; }
  .tr-n { grid-row: auto; width: 26px; height: 26px; }
  .trace-stack li.is-on { transform: translateY(-2px); }
  .trace-rows { min-height: 470px; padding: 10px; }
  .trace-rows li { grid-template-columns: 1fr; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) { .ix-cursor { display: none; } .ix-spin { animation: none; } }


/* ---------- Browse apps replica (home) ----------
   Laid out at laptop size (1440 × 820) and scaled to the frame, like a
   screenshot that stays sharp. The list scrolls itself (site.js); phones get a
   native one-column layout. */
.browse-sec { padding-block: clamp(64px, 8vw, 104px) 0; }
.browse-demo { margin: 0; }
.bx-frame { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--panel-2); box-shadow: var(--shadow-lg); }
/* One laptop-sized layout on every screen, scaled to fit like a screenshot.
   --k is set by site.js; the CSS fallback works it out before the script runs. */
.bx-frame { position: relative; aspect-ratio: 1440 / 820; container-type: inline-size; }
.bx { display: grid; grid-template-columns: 58px minmax(0, 1fr); width: 1440px; height: 820px; transform: scale(var(--k, tan(atan2(100cqw, 1440px)))); transform-origin: 0 0; background: #ebebea; color: #111; font-family: var(--sans); }
html[data-theme="dark"] .bx { background: #0e0e0e; color: #ededed; }
.bx-side { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 0 12px; }
.bx-side svg { width: 20px; height: 20px; flex: none; fill: none; stroke: #222; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
html[data-theme="dark"] .bx-side svg { stroke: #cfcfcf; }
.bx-side > svg { margin: 2px 0 8px; opacity: .85; }
.bx-ic { display: grid; place-items: center; width: 40px; height: 32px; border-radius: 9px; }
.bx-ic.is-home { width: 38px; height: 34px; margin: 2px 0 6px; border: 1px solid #dcdcdc; background: #fafafa; }
.bx-ic.is-on { width: 42px; background: #dcdcdb; }
html[data-theme="dark"] .bx-ic.is-home { border-color: #333; background: #1d1d1d; }
html[data-theme="dark"] .bx-ic.is-on { background: #2a2a2a; }
.bx-bell { position: relative; display: grid; place-items: center; width: 40px; height: 30px; }
.bx-bell em { position: absolute; top: -1px; right: 6px; min-width: 16px; height: 16px; padding: 0 4px; border: 2px solid #ebebea; border-radius: 9px; background: #5f7344; color: #fff; font: 700 9.5px/12px var(--sans); font-style: normal; text-align: center; }
html[data-theme="dark"] .bx-bell em { border-color: #0e0e0e; }
.bx-sep { width: 34px; height: 1px; margin: 6px 0; background: #d9d9d8; }
html[data-theme="dark"] .bx-sep { background: #2a2a2a; }
.bx-side-gap { flex: 1; }
.bx-gift { display: grid; place-items: center; width: 40px; height: 36px; margin-top: 8px; border-radius: 10px; background: #d8ddd0; }
.bx-gift svg { stroke: #5f7344; }
html[data-theme="dark"] .bx-gift { background: #27301f; }
html[data-theme="dark"] .bx-gift svg { stroke: #aebd8f; }
.bx-avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, #7ea35a 0%, #3f8a7c 55%, #2f6fb0 100%); box-shadow: 0 0 0 2px #fff, 0 1px 3px rgba(0,0,0,.18); color: #fff; font: 700 14px/1 var(--sans); letter-spacing: .01em; }
html[data-theme="dark"] .bx-avatar { box-shadow: 0 0 0 2px #0e0e0e; }
.bx-main { display: flex; flex-direction: column; min-width: 0; margin: 6px 6px 6px 0; overflow: hidden; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.05); }
html[data-theme="dark"] .bx-main { background: #161616; box-shadow: 0 0 0 1px #262626; }
.bx-top { padding: 28px 0 6px; }
.bx-title { display: flex; align-items: center; gap: 22px; }
.bx-title svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; opacity: .7; }
.bx-title h3 { font: 700 30px/1.1 var(--sans); letter-spacing: -.02em; color: inherit; }
.bx-sub { max-width: 640px; margin: 10px 0 0 41px; font-size: 15px; line-height: 1.55; color: #666; }
html[data-theme="dark"] .bx-sub, html[data-theme="dark"] .bx-count { color: #9a9a9a; }
.bx-search { display: flex; align-items: center; gap: 10px; height: 42px; margin: 18px 0 0 41px; padding: 0 16px; border: 1px solid #dcdcdc; border-radius: 10px; font-size: 15px; color: #8c8c8c; }
html[data-theme="dark"] .bx-search { border-color: #333; }
.bx-search svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.bx-pills { display: flex; gap: 4px; margin: 12px 0 0 41px; padding: 4px; overflow: hidden; border-radius: 12px; background: #f4f4f4; white-space: nowrap; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
html[data-theme="dark"] .bx-pills { background: #1f1f1f; }
.bx-pills span { padding: 8px 13px; border-radius: 8px; font: 500 14px/1 var(--sans); color: #555; }
html[data-theme="dark"] .bx-pills span { color: #a0a0a0; }
.bx-pills span.is-on { background: #fff; color: #111; font-weight: 600; box-shadow: 0 0 0 1px #e2e2e2, 0 1px 2px rgba(0,0,0,.05); }
html[data-theme="dark"] .bx-pills span.is-on { background: #2b2b2b; color: #fff; box-shadow: none; }
.bx-count { margin: 14px 0 0 41px; font-size: 14.5px; color: #555; }
.bx-count b { color: inherit; font-weight: 700; }
html[data-theme="dark"] .bx-count b { color: #fff; }
.bx-view { position: relative; flex: 1; min-height: 0; }
.bx-scroll { position: absolute; inset: 0; overflow: hidden; }
.bx-fade { position: absolute; left: 0; right: 0; height: 40px; pointer-events: none; }
.bx-fade--top { top: 0; height: 22px; background: linear-gradient(#fff, rgba(255,255,255,0)); }
.bx-fade--bottom { bottom: 0; background: linear-gradient(rgba(255,255,255,0), #fff); }
html[data-theme="dark"] .bx-fade--top { background: linear-gradient(#161616, rgba(22,22,22,0)); }
html[data-theme="dark"] .bx-fade--bottom { background: linear-gradient(rgba(22,22,22,0), #161616); }
/* The list moves as one GPU layer, so it glides at sub-pixel steps without repainting. */
.bx-track { position: relative; padding: 0 40px 24px 36px; }
.bx-track, .bx-loop { will-change: transform; backface-visibility: hidden; }
.bx-track > .bx-sec, .bx-loop > .bx-sec { margin-left: 41px; }
.bx-sec { padding-top: 26px; }
.bx-sec h4 { display: flex; align-items: baseline; gap: 8px; margin-bottom: 14px; font: 700 16px/1.3 var(--sans); color: inherit; }
.bx-sec h4 span { font-weight: 500; font-size: 14px; color: #777; }
.bx-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.bx-card { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 14px; min-height: 112px; padding: 16px 16px 16px 18px; border-radius: 14px; background: #f4f4f4; }
html[data-theme="dark"] .bx-card { background: #1e1e1e; }
.bx-logo { display: grid; place-items: center; width: 44px; height: 44px; overflow: hidden; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px rgba(17,17,17,.08); }
.bx-logo img { width: 62%; height: 62%; object-fit: contain; }
.bx-logo.is-fill, .bx-logo.is-brand, .bx-logo.is-letter { box-shadow: none; }
.bx-logo.is-fill img { width: 100%; height: 100%; object-fit: cover; }
.bx-logo.is-brand i { width: 58%; height: 58%; background: #fff; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.bx-logo.is-letter { color: #fff; font: 700 14px/1 var(--sans); }
.bx-logo.is-tool svg { width: 52%; height: 52%; fill: none; stroke: #2b2b2b; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.bx-txt { min-width: 0; }
.bx-name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.bx-name b { font: 600 15px/1.3 var(--sans); color: inherit; }
.bx-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 6px; background: #fff; font: 500 12px/1.3 var(--sans); color: #555; white-space: nowrap; }
.bx-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #9a9a9a; }
.bx-chip.is-live { color: #111; }
.bx-chip.is-live::before { background: #3d9a4a; }
html[data-theme="dark"] .bx-chip { background: #2a2a2a; color: #a8a8a8; }
html[data-theme="dark"] .bx-chip.is-live { color: #ededed; }
.bx-txt small { display: -webkit-box; margin-top: 6px; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 13.5px; line-height: 1.4; color: #666; }
html[data-theme="dark"] .bx-txt small { color: #9a9a9a; }
.bx-btn { padding: 9px 15px; border: 1px solid #d8d8d8; border-radius: 10px; background: #fff; font: 600 14px/1 var(--sans); color: #111; }
html[data-theme="dark"] .bx-btn { border-color: #3a3a3a; background: #232323; color: #ededed; }
.bx-btn.is-go { border-color: #dcdcdb; background: #ebebea; color: #4a4a4a; }
html[data-theme="dark"] .bx-btn.is-go { border-color: #333; background: #262626; color: #b4b4b4; }
@media (max-width: 900px) { .bx-frame { border-radius: 16px; } }
/* Parts only the phone view shows. */
.bx-status, .bx-mtop, .bx-homebar, .sf-bar { display: none; }

/* Phone: an iPhone with the TensorOS phone layout inside. The screen is laid out at
   the iPhone's own size (393 × 852 points) and scaled into the frame, so it looks
   like a real phone screen at any width. */
@media (max-width: 700px) {
  .bx-frame {
    --pw: min(300px, 78vw); --bz: 10px; --sw: calc(var(--pw) - 2 * var(--bz));
    width: var(--pw); height: calc(var(--sw) * 852 / 393 + 2 * var(--bz)); aspect-ratio: auto;
    margin-inline: auto; padding: var(--bz); overflow: visible; border: 0;
    border-radius: calc(var(--sw) * 55 / 393 + var(--bz)); background: #0c0c0c;
    box-shadow: inset 0 0 0 1px #2e2e30, 0 0 0 1.5px #b9b9bd, 0 0 0 3px #dcdcdf, 0 26px 50px -20px rgba(0, 0, 0, .45);
  }
  /* Side buttons: power on the right, volume on the left. */
  .bx-frame::before, .bx-frame::after { content: ""; position: absolute; width: 3px; border-radius: 2px; background: #c3c3c7; }
  .bx-frame::before { right: -4.5px; top: 25%; height: 11%; }
  .bx-frame::after { left: -4.5px; top: 21%; height: 7%; box-shadow: 0 calc(var(--pw) * .2) 0 #c3c3c7; }
  html[data-theme="dark"] .bx-frame { box-shadow: inset 0 0 0 1px #2e2e30, 0 0 0 1.5px #4a4a4e, 0 0 0 3px #2a2a2d, 0 26px 50px -20px rgba(0, 0, 0, .8); }
  html[data-theme="dark"] .bx-frame::before, html[data-theme="dark"] .bx-frame::after { background: #4a4a4e; }
  html[data-theme="dark"] .bx-frame::after { box-shadow: 0 calc(var(--pw) * .2) 0 #4a4a4e; }

  .bx { position: relative; display: flex; flex-direction: column; width: 393px; height: 852px; overflow: hidden; border-radius: 55px; background: #f0f0f0; transform: scale(var(--k, tan(atan2(100cqw, 393px)))); }
  html[data-theme="dark"] .bx { background: #0e0e0e; }
  .bx-side { display: none; }

  .bx-status { position: relative; display: flex; flex: none; align-items: center; justify-content: space-between; height: 54px; padding: 4px 30px 0 48px; font: 600 17px/1 -apple-system, BlinkMacSystemFont, var(--sans); letter-spacing: -.01em; }
  .bx-island { position: absolute; top: 11px; left: 50%; width: 124px; height: 36px; margin-left: -62px; border-radius: 18px; background: #000; }
  .bx-island::after { content: ""; position: absolute; top: 50%; right: 13px; width: 11px; height: 11px; margin-top: -5.5px; border-radius: 50%; background: radial-gradient(circle at 38% 38%, #33405e 0 22%, #0a0c12 62%); }
  .bx-sys { display: flex; align-items: center; gap: 6px; }
  .bx-sys svg { width: auto; height: 12px; fill: currentColor; }
  .bx-sys svg:last-child { height: 13px; }
  .bx-sys .o { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
  .bx-sys rect.o { stroke-width: 1.1; opacity: .4; }

  .bx-mtop { display: grid; flex: none; grid-template-columns: 44px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; height: 60px; padding: 0 18px 4px; }
  .bx-mtop svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  .bx-mt-menu { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #dcdcdb; border-radius: 10px; background: #fff; }
  html[data-theme="dark"] .bx-mt-menu { border-color: #2c2c2c; background: #181818; }
  .bx-mt-brand { display: flex; align-items: center; gap: 6px; font: 700 19px/1 var(--sans); letter-spacing: -.01em; }
  .bx-mt-brand code { font: 600 14px/1 var(--mono); letter-spacing: -.08em; color: #647945; }
  html[data-theme="dark"] .bx-mt-brand code { color: #a7bb84; }
  .bx-mt-bell { position: relative; display: grid; place-items: center; width: 40px; height: 40px; }
  .bx-mt-bell em { position: absolute; top: 3px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px; border: 2px solid #f0f0f0; border-radius: 9px; background: #5f7344; color: #fff; font: 700 10px/13px var(--sans); font-style: normal; text-align: center; }
  html[data-theme="dark"] .bx-mt-bell em { border-color: #0e0e0e; }
  .bx-mt-avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #7ea35a 0%, #3f8a7c 55%, #2f6fb0 100%); color: #fff; font: 700 15px/1 var(--sans); }

  .bx-main { flex: 1; margin: 0; border-radius: 22px 22px 0 0; }
  .bx-top { padding: 24px 0 4px; }
  .bx-title { gap: 0; }
  .bx-title svg { display: none; }
  .bx-title h3 { font-size: 28px; }
  .bx-sub, .bx-search, .bx-pills, .bx-count { margin-left: 0; }
  .bx-sub { margin-top: 8px; font-size: 14.5px; line-height: 1.5; }
  .bx-search { height: 44px; margin-top: 16px; font-size: 15px; }
  .bx-pills { margin-top: 12px; }
  .bx-pills span { padding: 8px 12px; font-size: 13.5px; }
  .bx-count { margin-top: 12px; font-size: 13.5px; }
  .bx-track { padding: 0 18px; }
  .bx-track > .bx-sec, .bx-loop > .bx-sec { margin-left: 0; }
  .bx-sec { padding-top: 24px; }
  .bx-sec h4 { margin-bottom: 12px; font-size: 16px; }
  .bx-grid { grid-template-columns: 1fr; gap: 10px; }
  .bx-card { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 13px; min-height: 0; padding: 14px; border-radius: 16px; }
  .bx-name b { font-size: 15.5px; }
  .bx-txt small { margin-top: 5px; font-size: 13.5px; -webkit-line-clamp: 1; }
  .bx-btn { padding: 10px 14px; font-size: 13.5px; }
  .bx-fade--bottom { height: 150px; background: linear-gradient(rgba(255, 255, 255, 0), #fff 70%); }
  html[data-theme="dark"] .bx-fade--bottom { background: linear-gradient(rgba(22, 22, 22, 0), #161616 70%); }

  /* Safari's bottom bar and the iPhone home bar float over the list, as on the real phone site. */
  .bx .sf-bar { position: absolute; right: 0; bottom: 0; left: 0; }
  .bx-homebar { position: absolute; bottom: 8px; left: 50%; display: block; width: 134px; height: 5px; margin-left: -67px; border-radius: 3px; background: #111; }
  html[data-theme="dark"] .bx-homebar { background: #f2f2f2; }
}
/* iPhone Safari bottom bar, shared by the phone replicas (Browse apps, Idrok). Laid out
   in iPhone points inside a 393-point screen. */
@media (max-width: 700px) {
  .sf-bar { display: flex; align-items: center; gap: 10px; height: 104px; padding: 12px 16px 40px; background: linear-gradient(rgba(240, 240, 240, 0), rgba(240, 240, 240, .96) 30%); }
  .sf-btn, .sf-url { display: flex; align-items: center; height: 52px; border-radius: 26px; background: rgba(255, 255, 255, .92); box-shadow: 0 6px 18px rgba(0, 0, 0, .1), 0 0 0 .5px rgba(0, 0, 0, .08); color: #1a1a1a; }
  .sf-btn { justify-content: center; flex: none; width: 52px; }
  .sf-url { flex: 1; gap: 12px; padding: 0 18px; font: 600 16.5px/1 -apple-system, BlinkMacSystemFont, var(--sans); letter-spacing: -.01em; }
  .sf-url b { flex: 1; font-weight: 600; text-align: center; }
  .sf-bar svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .sf-btn:first-child svg { width: 25px; height: 25px; stroke-width: 2.4; }
  html[data-theme="dark"] .sf-bar { background: linear-gradient(rgba(14, 14, 14, 0), rgba(14, 14, 14, .96) 30%); }
  html[data-theme="dark"] .sf-btn, html[data-theme="dark"] .sf-url { background: rgba(48, 48, 50, .94); box-shadow: 0 6px 18px rgba(0, 0, 0, .45), inset 0 .5px 0 rgba(255, 255, 255, .12); color: #f2f2f2; }
}
@media (prefers-reduced-motion: reduce) { .bx-scroll { overflow-y: auto; } .bx-track, .bx-loop { will-change: auto; } }

/* Integrations by category */
.int-cats-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 44px 0 16px; }
.int-cats-head h3 { font: 400 clamp(24px, 2.4vw, 31px)/1.15 var(--serif); letter-spacing: -.025em; color: var(--text); }
.int-cats-head span { font: 500 12px/1.4 var(--mono); color: var(--faint); white-space: nowrap; }
.int-cats { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; }
.int-cat { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; min-height: 118px; padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); transition: border-color .2s ease, transform .2s ease; }
.int-cat:hover { border-color: var(--line-strong, var(--faint)); transform: translateY(-1px); }
.int-cat-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.int-cat-logos { display: flex; gap: 5px; }
.int-cat-logos span { display: grid; place-items: center; width: 30px; height: 30px; overflow: hidden; border-radius: 8px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.int-cat-logos img { display: block; width: 20px; height: 20px; object-fit: contain; }
.int-cat-logos .is-fill img { width: 100%; height: 100%; object-fit: cover; }
.int-cat-n { font: 500 12px/1 var(--mono); color: var(--faint); }
.int-cat b { font: 500 13.5px/1.35 var(--sans); color: var(--text); text-wrap: balance; }
@media (max-width: 1080px) { .int-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .int-cats { grid-template-columns: none; grid-template-rows: repeat(3, auto); grid-auto-flow: column; grid-auto-columns: 68%; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 6px; scrollbar-width: none; }
  .int-cats::-webkit-scrollbar { display: none; }
  .int-cat { scroll-snap-align: start; min-height: 104px; }
}
@media (prefers-reduced-motion: reduce) { .int-cat { transition: none; } .int-cat:hover { transform: none; } }

/* Plans */
.plan-switch .tour-tabs { margin-bottom: 22px; }
.plan-panel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.js .plan-panel { display: none; }
.js .plan-panel.is-active { display: grid; }
.plan-panel:focus-visible { outline-offset: 6px; }
.card.plan-card { position: relative; display: block; padding: 0; overflow: hidden; }
.plan-card.is-popular { border: 2px solid var(--text); }
.plan-art { display: grid; place-items: center; height: 118px; background: var(--tier-bg); color: var(--tier-fg); }
.plan-art svg { width: 94px; height: 74px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.tier-start { --tier-bg: linear-gradient(135deg, #eef3ea, #e2ebdd); --tier-fg: #3f6b45; }
.tier-plus { --tier-bg: linear-gradient(135deg, #eaf0fb, #dde6f8); --tier-fg: #3557a8; }
.tier-pro { --tier-bg: linear-gradient(135deg, #24392c, #2f6b45); --tier-fg: #e9f4ec; }
.tier-max { --tier-bg: linear-gradient(135deg, #2b2b2e, #4a4a50); --tier-fg: #f2f2f4; }
.tier-enterprise { --tier-bg: linear-gradient(135deg, #f2e8d8, #ead9bd); --tier-fg: #6b4a1e; }
html:not([data-theme="light"]) .tier-start { --tier-bg: linear-gradient(135deg, #263228, #2d3d30); --tier-fg: #a9d3b2; }
html:not([data-theme="light"]) .tier-plus { --tier-bg: linear-gradient(135deg, #222c3d, #283651); --tier-fg: #b0c4f0; }
html:not([data-theme="light"]) .tier-enterprise { --tier-bg: linear-gradient(135deg, #3a3122, #46392a); --tier-fg: #ecd5ad; }
.plan-badge { position: absolute; top: 12px; right: 12px; padding: 5px 11px; border-radius: 999px; background: #f6f6f2; color: #171716; font-size: 12px; font-weight: 600; line-height: 1.2; }
.plan-in { padding: clamp(20px, 2vw, 26px); }
.plan-in h3 { font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.plan-in .plan-price { margin-top: 20px; }
.plan-in .plan-price strong { font-size: 38px; }
.plan-desc { min-height: 3em; margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.card .plan-desc { color: var(--muted); }
.plan-cta { width: 100%; margin-top: 18px; justify-content: center; }
.plan-cta--strong { background: var(--text); color: var(--bg); }
.plan-cta--strong:hover { background: var(--text-2); color: var(--bg); }
.plan-list { display: grid; gap: 18px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.plan-g h4 { margin: 0 0 9px; font: 600 12.5px/1.3 var(--sans); letter-spacing: 0; color: var(--muted); }
.plan-g ul { list-style: none; display: grid; gap: 9px; margin: 0; padding: 0; }
.plan-g li { display: grid; grid-template-columns: 19px minmax(0, 1fr) auto; align-items: center; gap: 9px; font-size: 14px; line-height: 1.35; color: var(--text); }
.plan-g li > i { display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; background: var(--live-bg); color: var(--live); }
.plan-g li > i svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.plan-g li > b { font-weight: 600; text-align: right; color: var(--text); }
.plan-g li > em { padding: 2px 7px; border-radius: 999px; background: var(--panel-3); color: var(--muted); font-size: 11px; font-style: normal; font-weight: 500; white-space: nowrap; }
.plan-g li.is-no { color: var(--faint); }
.plan-g li.is-no > span { text-decoration: line-through; }
.plan-g li.is-no > b { color: var(--faint); font-weight: 500; text-decoration: line-through; }
.plan-g li.is-no > i { background: rgba(200, 70, 70, .12); color: #c84b4b; }
.card.plan-free { display: grid; grid-template-columns: minmax(150px, .7fr) minmax(0, 2fr) auto; align-items: center; gap: 20px clamp(20px, 3vw, 36px); margin-top: 18px; padding: 20px clamp(20px, 2.4vw, 28px); }
.plan-free h3 { font-size: 19px; font-weight: 700; }
.plan-free p { margin-top: 2px; font-size: 13.5px; color: var(--muted); }
.plan-free ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; font-size: 14px; color: var(--muted); }
.plan-free li b { font-weight: 600; color: var(--text); }
.card.plan-packs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: center; gap: 22px clamp(24px, 4vw, 52px); margin-top: 16px; padding: clamp(20px, 2.6vw, 30px); }
.plan-packs img { display: block; margin-bottom: 12px; }
.plan-packs h3 { font-size: 20px; }
.plan-packs p { margin-top: 7px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.plan-packs ul { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; }
.plan-packs li { display: grid; gap: 7px; padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); }
.plan-packs li b { font-size: 21px; font-weight: 700; letter-spacing: -.02em; color: var(--text); white-space: nowrap; }
.plan-packs li b small { font-size: 12.5px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.plan-packs li strong { font-size: 15px; font-weight: 600; color: var(--text); }
.plan-packs li span { font-size: 12.5px; color: var(--muted); }
.plan-legal { margin-top: 14px; text-align: center; font-size: 13px; line-height: 1.5; color: var(--muted); }
.tour-drawn { display: flex; align-items: center; justify-content: center; min-height: 340px; background: var(--panel-2); }
.tour-meter { width: min(100%, 440px); padding: 18px; border: 0 !important; background: none; }
.tour-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: 100%; padding: clamp(12px, 2vw, 22px); }
.tour-plan { display: grid; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.tour-plan .plan-art { height: 86px; }
.tour-plan .plan-art svg { width: 62px; height: 50px; }
.tour-plan > b { padding: 12px 12px 0; font-size: 15px; font-weight: 700; color: var(--text); }
.tour-plan > strong { padding: 3px 12px 0; font-size: 21px; font-weight: 700; letter-spacing: -.02em; color: var(--text); }
.tour-plan > strong small { margin-left: 3px; font-size: 11.5px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.tour-plan > span { padding: 4px 12px 13px; font-size: 12.5px; color: var(--muted); }
@media (max-width: 1000px) {
  .js .plan-panel.is-active, .plan-panel { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(290px, 44%); margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 8px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .plan-panel::-webkit-scrollbar { display: none; }
  .plan-card { scroll-snap-align: start; }
  .card.plan-free { grid-template-columns: 1fr auto; }
  .plan-free ul { grid-column: 1 / -1; grid-row: 2; }
  .card.plan-packs { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .js .plan-panel.is-active, .plan-panel { grid-auto-columns: 86%; }
  .plan-free ul { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
  .plan-packs li { padding: 12px 10px; }
  .plan-packs li b { font-size: 17px; }
  .plan-packs li b small { display: block; margin-top: 2px; }
  .tour-drawn { min-height: 0; }
  .tour-plans { gap: 6px; padding: 8px; }
  .tour-plan .plan-art { height: 62px; }
  .tour-plan .plan-art svg { width: 44px; height: 36px; }
  .tour-plan > b { padding: 9px 8px 0; font-size: 13px; }
  .tour-plan > strong { padding: 2px 8px 0; font-size: 16px; }
  .tour-plan > strong small { display: none; }
  .tour-plan > span { padding: 3px 8px 10px; font-size: 11px; }
}

/* TensorOS page: the automation film is for computers; phones get this section. */
.tm { display: none; }
.tm-api { color: #8b3f7c; }
.tm-api svg { width: 62%; height: 62%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 760px) {
  [data-film] { display: none; }
  .tm { display: grid; gap: 12px; margin-top: 40px; text-align: left; }
  .tm-head { margin-bottom: 8px; text-align: center; }
  .tm-head h2 { font: 400 clamp(29px, 8.4vw, 36px)/1.1 var(--serif); letter-spacing: -.03em; color: var(--text); text-wrap: balance; }
  .tm-head h2 b { font-family: var(--sans); font-weight: 700; letter-spacing: -.045em; }
  .tm-head > p:last-child { max-width: 30em; margin: 12px auto 0; font-size: 15.5px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
  .tm .card { display: block; padding: 18px; }
  .tm h3 { font-size: 17px; font-weight: 600; letter-spacing: -.012em; color: var(--text); }
  .tm-who { display: flex; align-items: center; gap: 11px; }
  .tm-who > div { flex: 1; min-width: 0; }
  .tm-who small { display: block; font-size: 12px; font-weight: 500; color: var(--accent-ink); }
  .tm-who b { display: block; margin-top: 1px; font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; color: var(--text); }
  .tm-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: #d99a2b; box-shadow: 0 0 0 4px rgba(217, 154, 43, .18); }
  .tm dl { display: grid; gap: 7px; margin: 15px 0 0; padding: 13px 0; border-block: 1px solid var(--line); }
  .tm dl > div { display: grid; grid-template-columns: 64px minmax(0, 1fr); font-size: 13.5px; }
  .tm dt { color: var(--muted); }
  .tm dd { margin: 0; overflow: hidden; color: var(--text); font-weight: 500; white-space: nowrap; text-overflow: ellipsis; }
  .card .tm-mail { margin-top: 13px; font-size: 14.5px; line-height: 1.5; color: var(--text-2); }
  .tm-actions { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; margin-top: 15px; }
  .tm-actions span { display: grid; place-items: center; height: 44px; border: 1px solid var(--line-2); border-radius: 11px; font-size: 14.5px; font-weight: 600; color: var(--text); }
  .tm-actions .is-go { border-color: transparent; background: var(--accent-btn); color: #fff; }
  .card .tm-note { margin-top: 10px; font-size: 12px; line-height: 1.4; text-align: center; color: var(--faint); }
  .tm-live ul { list-style: none; display: grid; margin: 8px 0 -6px; padding: 0; }
  .tm-live li { display: flex; align-items: center; gap: 12px; min-height: 60px; border-bottom: 1px solid var(--line); }
  .tm-live li:last-child { border-bottom: 0; }
  .tm-live li > div { flex: 1; min-width: 0; }
  .tm-live b { display: block; font-size: 14.5px; font-weight: 600; color: var(--text); }
  .tm-live small { display: block; margin-top: 1px; font-size: 12.5px; color: var(--muted); }
  .tm .logo { flex: none; }
  .card.tm-apps p { margin-top: 7px; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
  .tm-wall { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin: 16px 0; }
  .tm-wall .logo { width: 100%; height: auto; aspect-ratio: 1; }
}

/* Moving between pages */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .2s; animation-timing-function: ease; }
}
html.is-navigating::after { content: ""; position: fixed; left: 0; right: 0; top: 0; z-index: 100; height: 2px; background: var(--accent); transform: scaleX(.08); transform-origin: left; animation: nav-line 1.6s cubic-bezier(.16, .8, .24, 1) forwards; pointer-events: none; }
@keyframes nav-line { to { transform: scaleX(.92); } }
.site-menu nav a.is-going { color: var(--accent-ink); }
.js .reveal.is-instant { transition: none; }

/* Phones and tablets: keep scrolling light */
@media (max-width: 1080px) {
  .site-header { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (max-width: 760px) {
  .hero-logos { filter: none; }
  .hero-logos svg { animation: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .js .reveal { transform: translateY(8px); transition-duration: .42s; }
  .js .reveal.is-in { transform: none; }
}
