/* ==========================================================================
   RemoteVibe · search landing pages (agents, use cases) and docs.
   Loaded after how.css (+ features.css on marketing pages). Reuses hw-* / ft-*.
   The sitemap footer (.sx-footer) is site-wide and lives in liquid.css.
   ========================================================================== */

/* ---------- Breadcrumbs ---------- */
.sx-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--lg-faint); }
.sx-crumbs a { color: var(--lg-muted); text-decoration: none; }
.sx-crumbs a:hover { color: var(--lg-ink); }
.sx-crumbs [aria-current] { color: var(--lg-ink); font-weight: 600; }

/* ---------- Hero: text left, phone right ---------- */
.sx-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 48px;
  padding: 56px 0 8px;
}
.sx-hero-text { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.sx-hero-text .hw-chip { align-self: flex-start; }
.sx-agent-chip img { border-radius: 5px; }
.sx-h1 { margin-top: 0 !important; font-size: clamp(2.6rem, 5.6vw, 5rem) !important; }
.sx .sx-hero .hw-lead { margin: 0 !important; max-width: 600px; }
.sx .sx-hero .hw-ctas { justify-content: flex-start; margin-top: 4px; }
.sx-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; list-style: none; color: var(--lg-muted); font-size: 14px; }
.sx-meta li { display: inline-flex; align-items: center; gap: 7px; }
.sx-meta .hw-ic { width: 16px; height: 16px; color: var(--lg-accent-ink); }

.sx-hero-visual { position: relative; display: grid; place-items: center; min-height: 640px; }
.sx-glow {
  position: absolute; inset: 10% 5%; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--lg-accent) 38%, transparent), transparent 68%);
  filter: blur(40px); z-index: 0;
}
.sx-float {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 18px; font-size: 14px;
}
.sx-float span { display: flex; flex-direction: column; line-height: 1.25; }
.sx-float small { color: var(--lg-muted); font-size: 12px; }
.sx-float .hw-ic { width: 22px; height: 22px; color: var(--lg-accent-ink); }
.sx-float-a { top: 16%; left: -4%; }
.sx-float-b { bottom: 14%; right: -6%; }

/* Phone frame (same look as .ft-phone, static) */
.sx-phone {
  position: relative; z-index: 1;
  width: 300px; padding: 11px; border-radius: 54px;
  background: linear-gradient(160deg, #2b3540, #0b1117);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.42), inset 0 0 0 1.5px rgba(255, 255, 255, 0.16), inset 0 2px 0 rgba(255, 255, 255, 0.22);
}
html[data-theme="light"] .sx-phone { box-shadow: 0 40px 80px rgba(18, 60, 84, 0.26), inset 0 0 0 1.5px rgba(255, 255, 255, 0.2), inset 0 2px 0 rgba(255, 255, 255, 0.3); }
.sx-screen { position: relative; aspect-ratio: 390 / 844; overflow: hidden; border-radius: 44px; background: #0b1a26; }
html[data-theme="light"] .sx-screen { background: #cfe6ee; }
.sx-shot { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
html[data-theme="dark"] .sx-shot-light,
html:not([data-theme="dark"]) .sx-shot-dark { display: none !important; }
.sx-phone-sm { width: 236px; padding: 9px; border-radius: 44px; }
.sx-phone-sm .sx-screen { border-radius: 36px; }

/* ---------- Steps ---------- */
.sx-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 48px 0 0; padding: 0; list-style: none; }
.sx-step { display: flex; flex-direction: column; gap: 12px; padding: 30px; border-radius: 30px; }
.sx-step h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.sx-step p { color: var(--lg-muted); font-size: 16px; line-height: 1.55; }
.sx-step-n {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  font-weight: 800; color: var(--lg-on-accent); background: var(--lg-accent);
}
.sx-cmd {
  display: block; margin-top: 6px; padding: 12px 14px; border-radius: 14px; white-space: pre-wrap; word-break: break-all;
  font: 13px/1.5 var(--rv-font-mono); color: #d7f5ef; background: var(--hw-term-bg);
}
html[data-theme="light"] .sx-cmd { background: #0f2633; }
.sx-cmd span { color: #5eead4; user-select: none; }
.sx-cmd-note { color: var(--lg-faint); font-size: 12.5px; line-height: 1.45; }

/* ---------- Cards grid ---------- */
.sx-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 48px; }
.sx-card { display: flex; flex-direction: column; gap: 12px; padding: 30px; border-radius: 30px; }
.sx-card h3 { margin-top: 6px; font-size: 21px; font-weight: 800; letter-spacing: -0.02em; }
.sx-card p { color: var(--lg-muted); font-size: 16px; line-height: 1.55; }

/* ---------- Screens strip ---------- */
.sx-screens { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 56px; }
.sx-screen-card { display: flex; flex-direction: column; align-items: center; gap: 20px; margin: 0; }
.sx-screen-card figcaption { display: flex; flex-direction: column; gap: 4px; text-align: center; }
.sx-screen-card figcaption b { font-size: 18px; }
.sx-screen-card figcaption span { color: var(--lg-muted); font-size: 15px; }

/* ---------- Access levels ---------- */
.sx-access { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.sx-level { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: 28px; }
.sx-level.is-default { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--lg-accent) 55%, transparent), var(--lg-shadow); }
.sx-level header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sx-level h3 { font-size: 20px; font-weight: 800; }
.sx-level p { color: var(--lg-muted); font-size: 15.5px; line-height: 1.5; }
.sx-level code { margin-top: auto; padding: 8px 12px; border-radius: 10px; font: 12.5px/1.4 var(--rv-font-mono); color: var(--lg-accent-ink); background: var(--lg-soft); }
.sx-tag { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--lg-accent-ink); background: color-mix(in srgb, var(--lg-accent) 14%, transparent); }
.sx-tag.warn { color: var(--lg-warn); background: color-mix(in srgb, var(--lg-warn) 14%, transparent); }

/* ---------- Other agents / related ---------- */
.sx-others { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.sx-related { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sx-other { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 22px; color: inherit; text-decoration: none; }
.sx-other span:not(.sx-arrow):not(.hw-t-ic) { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sx-other small { color: var(--lg-muted); font-size: 13px; }
.sx-other .hw-t-ic { width: 44px; height: 44px; padding: 11px; flex: none; }
.sx-arrow { width: 20px; height: 20px; margin-left: auto; flex: none; color: var(--lg-faint); }

.sx-agent-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--lg-muted); font-size: 13.5px; }
.sx-agent-row a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--lg-soft); box-shadow: inset 0 0 0 1px var(--lg-hair); }
.sx-agent-row span { margin-left: 6px; }

/* ---------- Before / after ---------- */
.sx-ba { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 48px; }
.sx-ba-col { padding: 32px; border-radius: 30px; }
.sx-ba-col h3 { font-size: 22px; font-weight: 800; margin-bottom: 18px; }
.sx-ba-col ul { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; }
.sx-ba-col li { display: flex; gap: 12px; font-size: 16.5px; line-height: 1.45; }
.sx-ba-before li { color: var(--lg-muted); }
.sx-ba-after { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--lg-accent) 45%, transparent), var(--lg-shadow); }
.sx-x { display: grid; place-items: center; flex: none; width: 22px; height: 22px; padding: 5px; border-radius: 50%; color: var(--lg-faint); background: var(--lg-soft); }
.sx-x .hw-ic { stroke-width: 3; }

/* ---------- Story ---------- */
.sx-story { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 40px 0 0; padding: 0; list-style: none; }
.sx-moment { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 24px; }
.sx-moment p { font-size: 16px; line-height: 1.5; }

/* ==========================================================================
   Docs
   ========================================================================== */
.dx { padding-bottom: 40px; }
.dx-wall .hw-orb-1 { opacity: calc(var(--lg-orb-o) * 0.6); }
.dx-h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.035em; margin: 16px 0 0 !important; }
.dx-lead { margin-top: 16px !important; max-width: 680px; color: var(--lg-muted); font-size: 18.5px; line-height: 1.55; }

/* Docs home */
.dx-home-hero { padding: 56px 0 8px; }
.dx-search { display: flex; align-items: center; gap: 12px; max-width: 680px; margin-top: 28px; padding: 0 18px; height: 58px; border-radius: 18px; }
.dx-search .hw-ic { width: 20px; height: 20px; color: var(--lg-muted); flex: none; }
.dx-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--lg-ink); font: inherit; font-size: 16.5px; }
.dx-search kbd { padding: 2px 8px; border-radius: 6px; font: 12px var(--rv-font-mono); color: var(--lg-faint); box-shadow: inset 0 0 0 1px var(--lg-hair); }
.dx-search-sm { height: 42px; margin: 0 0 18px; padding: 0 12px; border-radius: 12px; }
.dx-search-sm input { font-size: 14px; }
.dx-popular { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; color: var(--lg-faint); font-size: 14px; }
.dx-popular a { padding: 6px 12px; border-radius: 999px; color: var(--lg-ink); font-weight: 600; text-decoration: none; background: var(--lg-soft); box-shadow: inset 0 0 0 1px var(--lg-hair); }

.dx-start { margin-top: 40px; }
.dx-start-card {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 36px;
  padding: 36px 36px 0; border-radius: 32px; color: inherit; text-decoration: none; overflow: hidden;
}
.dx-start-card > div { display: flex; flex-direction: column; gap: 12px; padding-bottom: 36px; }
.dx-start-card h2 { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; }
.dx-start-card p { color: var(--lg-muted); font-size: 16.5px; line-height: 1.55; }
.dx-link { display: inline-flex; align-items: center; gap: 6px; color: var(--lg-accent-ink); font-weight: 700; }
.dx-link .hw-ic { width: 18px; height: 18px; }
.dx-start-img { width: 100%; border-radius: 18px 18px 0 0; box-shadow: 0 -2px 0 var(--lg-hair), 0 24px 60px rgba(0, 0, 0, 0.18); align-self: end; }
html[data-theme="dark"] .dx-img-light,
html:not([data-theme="dark"]) .dx-img-dark { display: none; }

.dx-sections { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }
.dx-section { padding: 24px; border-radius: 26px; }
.dx-section header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.dx-section .hw-t-ic { width: 42px; height: 42px; padding: 10px; border-radius: 13px; }
.dx-section h2 { font-size: 19px; font-weight: 800; }
.dx-count { margin-left: auto; color: var(--lg-faint); font-size: 13px; font-weight: 700; }
.dx-section ul { margin: 0; padding: 0; list-style: none; }
.dx-section li a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 0; border-top: 1px solid var(--lg-hair); color: var(--lg-ink); font-size: 15px; text-decoration: none; }
.dx-section li a span { width: 16px; height: 16px; color: var(--lg-faint); flex: none; }

.dx-contact { display: flex; align-items: center; gap: 18px; margin-top: 28px; padding: 26px 28px; border-radius: 26px; }
.dx-contact h2 { font-size: 20px; font-weight: 800; }
.dx-contact p { color: var(--lg-muted); font-size: 15px; margin-top: 4px !important; }
.dx-contact .lg-btn { margin-left: auto; flex: none; }

/* Article: sidebar · content · on this page */
.dx-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr) 220px; gap: 48px; align-items: start; padding-top: 40px; }
.dx-side, .dx-toc { position: sticky; top: 100px; }
.dx-side-toggle summary { display: none; }
.dx-side-group { margin-bottom: 18px; }
.dx-side-group p { margin: 0 0 6px !important; font-size: 12px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; color: var(--lg-faint); }
.dx-side-group ul { margin: 0; padding: 0; list-style: none; }
.dx-side-group a { display: block; padding: 6px 10px; margin-left: -10px; border-radius: 10px; color: var(--lg-muted); font-size: 14.5px; text-decoration: none; }
.dx-side-group a:hover { color: var(--lg-ink); background: var(--lg-soft); }
.dx-side-group a[aria-current] { color: var(--lg-accent-ink); font-weight: 700; background: color-mix(in srgb, var(--lg-accent) 12%, transparent); }

.dx-article { min-width: 0; }
.dx-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.dx-pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; font-size: 13.5px; background: var(--lg-soft); box-shadow: inset 0 0 0 1px var(--lg-hair); }
.dx-pill .hw-ic { width: 15px; height: 15px; color: var(--lg-accent-ink); }
.dx-pill-soft { color: var(--lg-faint); }

.dx-steps { margin: 44px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 48px; }
.dx-step { scroll-margin-top: 100px; }
.dx-step-head { display: flex; align-items: center; gap: 14px; }
.dx-step-head h2 { font-size: 25px; font-weight: 800; letter-spacing: -0.02em; }
.dx-step-n { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 50%; font-weight: 800; color: var(--lg-on-accent); background: var(--lg-accent); }
.dx-step-body { margin: 16px 0 0 50px; }
.dx-step-split { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 32px; align-items: start; }
.dx-step-text p { font-size: 17px; line-height: 1.65; }
.dx-list { margin: 10px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.dx-list li { font-size: 16.5px; line-height: 1.6; }
.dx-list li::marker { color: var(--lg-accent-ink); }
.dx-tip { display: flex; gap: 12px; margin-top: 16px; padding: 14px 16px; border-radius: 16px; font-size: 15px; line-height: 1.5; }
.dx-tip .hw-ic { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.dx-tip p { font-size: 15px !important; line-height: 1.5 !important; }
.dx-tip-info { background: color-mix(in srgb, var(--lg-accent) 10%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--lg-accent) 26%, transparent); }
.dx-tip-info .hw-ic { color: var(--lg-accent-ink); }
.dx-tip-warn { background: color-mix(in srgb, var(--lg-warn) 10%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--lg-warn) 30%, transparent); }
.dx-tip-warn .hw-ic { color: var(--lg-warn); }

.dx-fig { margin: 22px 0 0; }
.dx-step-split .dx-fig { margin-top: 0; }
.dx-fig figcaption { margin-top: 10px; color: var(--lg-faint); font-size: 13.5px; text-align: center; }
.sx-phone-doc { width: 250px; padding: 9px; border-radius: 46px; margin: 0 auto; }
.sx-phone-doc .sx-screen { border-radius: 38px; }
.dx-window { overflow: hidden; border-radius: 16px; background: var(--lg-glass-strong); box-shadow: 0 24px 60px rgba(10, 40, 60, 0.18), inset 0 0 0 1px var(--lg-hair); }
html[data-theme="dark"] .dx-window { box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), inset 0 0 0 1px var(--lg-hair); }
.dx-window-bar { display: flex; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--lg-hair); }
.dx-window-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--lg-hair); }
.dx-window-bar i:nth-child(1) { background: #ff5f57; }
.dx-window-bar i:nth-child(2) { background: #febc2e; }
.dx-window-bar i:nth-child(3) { background: #28c840; }
.dx-window-body img { display: block; width: 100%; height: auto; }

.dx-helpful { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 56px; padding: 18px 22px; border-radius: 20px; font-weight: 600; }
.dx-helpful a { margin-left: auto; color: var(--lg-accent-ink); font-size: 14.5px; font-weight: 600; }
.dx-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.dx-pager-card { display: flex; flex-direction: column; gap: 6px; padding: 18px 22px; border-radius: 20px; color: inherit; text-decoration: none; }
.dx-pager-card small { display: inline-flex; align-items: center; gap: 6px; color: var(--lg-faint); font-size: 13px; }
.dx-pager-card small .hw-ic { width: 15px; height: 15px; }
.dx-pager-card b { font-size: 17px; }
.dx-next { text-align: right; align-items: flex-end; }

.dx-toc p { margin: 0 0 10px !important; font-size: 12px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; color: var(--lg-faint); }
.dx-toc ol { margin: 0; padding: 0 0 0 14px; list-style: none; border-left: 2px solid var(--lg-hair); }
.dx-toc li a { display: block; padding: 6px 0; color: var(--lg-muted); font-size: 14px; text-decoration: none; }
.dx-toc li a[aria-current] { color: var(--lg-accent-ink); font-weight: 700; }
.dx-toc-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-top: 28px; padding: 18px; border-radius: 20px; }
.dx-toc-cta span { color: var(--lg-muted); font-size: 13.5px; margin-bottom: 8px; }

/* ---------- Narrow screens ---------- */
@media (max-width: 1100px) {
  .dx-layout { grid-template-columns: 220px minmax(0, 1fr); }
  .dx-toc { display: none; }
}
@media (max-width: 900px) {
  .sx-hero { grid-template-columns: 1fr; text-align: left; }
  .sx-hero-visual { min-height: 0; padding: 24px 0; }
  .sx-float { display: none; }
  .sx-steps, .sx-grid, .sx-access, .sx-screens, .sx-ba, .sx-others, .sx-related, .dx-sections { grid-template-columns: 1fr; }
  .sx-screens .sx-screen-card:not(:first-child) { display: none; }
  .dx-layout { grid-template-columns: 1fr; gap: 20px; padding-top: 24px; }
  .dx-side { position: static; }
  .dx-side-toggle { padding: 4px 16px; border-radius: 16px; background: var(--lg-soft); box-shadow: inset 0 0 0 1px var(--lg-hair); }
  .dx-side-toggle summary { display: block; padding: 10px 0; font-weight: 700; cursor: pointer; }
  .dx-side-toggle:not([open]) nav { display: none; }
  .dx-step-body { margin-left: 0; }
  .dx-step-split { grid-template-columns: 1fr; }
  .dx-start-card { grid-template-columns: 1fr; }
  .dx-contact { flex-wrap: wrap; }
  .dx-contact .lg-btn { margin-left: 0; }
}

/* Docs search: filtered-out links and the empty note */
.dx-hide { display: none !important; }
.dx-empty { margin-top: 18px; color: var(--lg-muted); font-size: 15px; }
.dx-helpful-done { color: var(--lg-accent-ink); }
