/* ==========================================================================
   Styles for the products dropdown and the product pages.
   Kept separate from site.css so the landing page's own rules stay readable.
   ========================================================================== */

/* ---------- products dropdown in the header ---------- */

.menu { position: relative; display: flex; align-items: center; }

.menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s;
}
.menu-btn:hover,
.menu-btn[aria-expanded="true"] { color: var(--text); }
.menu-btn svg { width: 11px; height: 11px; transition: transform 0.18s ease; }
.menu-btn[aria-expanded="true"] svg { transform: rotate(180deg); }

/* The panel is anchored to the button on wide screens and pinned to the
   viewport edges on narrow ones, where a 340px panel hanging off a
   right-aligned button would otherwise run off the screen. */
.menu-pop {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  width: 340px;
  padding: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  /* Only the fade is animated. Visibility is deliberately left out of the
     transition: tie it to one and whether the menu is open depends on the
     animation clock, which stops in a background tab. Stuck open that is
     an invisible panel still taking clicks, and stuck shut it is a menu
     that never appears. The fade-out is worth less than that certainty,
     so closing is immediate. */
  transition: opacity 0.16s ease, transform 0.16s ease;
}
.menu[data-open="true"] .menu-pop {
  opacity: 1;
  visibility: visible;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .menu-pop, .menu-btn svg { transition: none; }
}

.menu-item {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  align-items: start;
  padding: 11px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
}
.menu-item:hover, .menu-item:focus-visible { background: var(--surface); outline: none; }
.menu-item:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
.menu-item .mark { margin-top: 1px; }
.menu-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}
.menu-name b { font-weight: 800; }
.menu-sub {
  margin: 3px 0 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
}
.menu-tag {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 999px;
}
.menu-tag.live { color: var(--live); background: var(--live-bg); }
.menu-tag.wip { color: var(--faint); border: 1px solid var(--border); }

.menu-foot {
  margin: 4px 6px 2px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.menu-foot a {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
}
.menu-foot a:hover { color: var(--text); }

nav.links a[aria-current="page"] { color: var(--text); }

/* ---------- product page ---------- */

.crumb {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--faint);
  padding-top: 26px;
}
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--text); }

.phero { padding: 22px 0 52px; }
.phero-top { display: flex; align-items: center; gap: 13px; flex-wrap: wrap; }
.phero-name {
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.025em;
}
.phero-name b { font-weight: 800; }
.phero h1 {
  margin: 20px 0 0;
  font-size: clamp(28px, 4.6vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
  max-width: 19ch;
}
.phero .lede { margin-top: 18px; }
.phero-cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.btn.ghost {
  background: none;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn.ghost:hover { background: var(--surface); }

/* The at-a-glance strip: who it is for, what it replaces, where it runs. */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 26px 32px;
  padding: 28px 0 34px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.fact dt {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 7px;
}
.fact dd { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.fact dd strong { color: var(--text); font-weight: 600; }

/* ---------- screen gallery ---------- */

/* minmax(0,1fr), not the default auto: an auto track sizes to its
   contents, and these items contain a 1200px-wide mockup, so the column
   grew to 1200px and pushed a horizontal scrollbar onto the page. */
.shots { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; }

.shot-head { max-width: 62ch; margin: 0 0 18px; }
.shot-head h3 {
  margin: 0 0 7px;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.018em;
}
.shot-head p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.shot-head .step {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 9px;
}

.shot {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--shadow);
}
.shot-chrome {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 34px;
  padding: 0 13px;
  background: #f1f2f5;
  border-bottom: 1px solid #e0e2e8;
}
.shot-dots { display: flex; gap: 6px; }
.shot-dots i { width: 9px; height: 9px; border-radius: 50%; background: #cdd0d8; display: block; }
.shot-url {
  flex: 1;
  max-width: 320px;
  margin: 0 auto;
  text-align: center;
  font-size: 10.5px;
  color: #8a8f9c;
  background: #ffffff;
  border: 1px solid #e0e2e8;
  border-radius: 6px;
  padding: 2px 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
/* The mockup is written at a real 1200x750 and then scaled to the column.
   `zoom` rather than `transform: scale()` because zoom scales the layout
   box too: the frame's height follows on its own, and when the scale is
   clamped on a narrow screen the overflow is real and therefore
   scrollable. A transform would leave a 750px-tall hole and nothing to
   pan. */
.shot-stage {
  position: relative;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
}
.shot-canvas {
  width: 1200px;
  height: 750px;
  zoom: var(--shot-scale, 1);
}
.shot-pan {
  margin: 9px 0 0;
  font-size: 12px;
  color: var(--faint);
}

/* A mockup is a picture of an application, so it keeps the application's
   own light palette in both themes rather than following the page. That is
   what a real screenshot would do. */
.mk {
  --i: #293448;
  --i2: #5c6579;
  --i3: #8d94a3;
  --ln: #e3e5ea;
  --bg2: #f6f7f9;
  --pri: #293448;
  --blue: #2563eb;
  --orange: #ea7317;
  --yellow: #d4a017;
  --red: #dc2626;
  --green: #059669;
  --cy: #0891b2;
  width: 1200px;
  height: 750px;
  display: flex;
  background: #fff;
  color: var(--i);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 13px;
  line-height: 1.45;
  overflow: hidden;
  user-select: none;
}
.mk * { box-sizing: border-box; }

/* app shell */
.mk-side { width: 196px; flex-shrink: 0; border-right: 1px solid var(--ln); background: var(--bg2); padding: 14px 10px; }
.mk-side.dark { background: #16202f; border-right-color: #223046; color: #cbd5e1; }
.mk-brand { display: flex; align-items: center; gap: 8px; padding: 2px 8px 14px; font-weight: 700; letter-spacing: -0.02em; font-size: 15px; }
.mk-brand svg { width: 20px; height: 20px; display: block; }
.mk-side.dark .mk-brand { color: #fff; }
.mk-nav { display: grid; gap: 1px; }
.mk-nav span {
  display: flex; align-items: center; gap: 9px;
  padding: 6px 9px; border-radius: 6px; font-size: 12.5px; color: var(--i2);
}
.mk-nav span svg { width: 14px; height: 14px; flex-shrink: 0; opacity: 0.75; }
.mk-nav span.on { background: #fff; color: var(--i); font-weight: 600; box-shadow: 0 1px 2px rgba(41,52,72,.07); }
.mk-side.dark .mk-nav span { color: #93a3b8; }
.mk-side.dark .mk-nav span.on { background: #24374f; color: #fff; box-shadow: none; }

.mk-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mk-top {
  height: 52px; flex-shrink: 0; display: flex; align-items: center; gap: 12px;
  padding: 0 18px; border-bottom: 1px solid var(--ln);
}
.mk-title { font-size: 15px; font-weight: 650; letter-spacing: -0.015em; }
.mk-sub { font-size: 11.5px; color: var(--i3); }
.mk-spacer { margin-left: auto; }
.mk-btn {
  font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 6px;
  background: var(--pri); color: #fff;
}
.mk-btn.g { background: #fff; color: var(--i2); border: 1px solid var(--ln); }

.mk-tabs { display: flex; gap: 20px; padding: 0 18px; border-bottom: 1px solid var(--ln); flex-shrink: 0; }
.mk-tabs span { padding: 9px 0; font-size: 12.5px; color: var(--i3); border-bottom: 2px solid transparent; }
.mk-tabs span.on { color: var(--i); font-weight: 600; border-bottom-color: var(--pri); }

.mk-body { flex: 1; min-height: 0; display: flex; }
.mk-pane { flex: 1; min-width: 0; padding: 16px 18px; }
.mk-rail { width: 172px; flex-shrink: 0; border-right: 1px solid var(--ln); padding: 14px 12px; }
.mk-right { width: 268px; flex-shrink: 0; border-left: 1px solid var(--ln); padding: 14px; background: #fcfcfd; }

.mk-lbl {
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--i3); margin-bottom: 9px;
}
.mk-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 9px; border-radius: 6px; border: 1px solid var(--ln);
  font-size: 12px; background: #fff; margin-bottom: 5px; width: 100%;
}
.mk-chip i { width: 9px; height: 9px; border-radius: 3px; display: block; flex-shrink: 0; }
.mk-chip kbd {
  margin-left: auto; font: 600 9.5px ui-monospace, monospace; color: var(--i3);
  border: 1px solid var(--ln); border-radius: 3px; padding: 0 4px;
}

.mk-card { border: 1px solid var(--ln); border-radius: 8px; padding: 11px 12px; background: #fff; margin-bottom: 9px; }
.mk-row { display: flex; align-items: center; gap: 9px; }
.mk-pill {
  font-size: 10px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 999px;
}
.mk-pill.ok { color: var(--green); background: rgba(5,150,105,.11); }
.mk-pill.warn { color: #b45309; background: rgba(217,119,6,.12); }
.mk-pill.info { color: var(--cy); background: rgba(8,145,178,.12); }

.mk-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.mk-table th {
  text-align: left; font-size: 9.5px; font-weight: 700; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--i3); padding: 0 10px 8px; border-bottom: 1px solid var(--ln);
}
.mk-table td { padding: 9px 10px; border-bottom: 1px solid #f0f1f4; }
.mk-table .n { text-align: right; font-variant-numeric: tabular-nums; }
.mk-table tr.sum td { font-weight: 700; border-bottom: 0; padding-top: 13px; }
.mk-muted { color: var(--i3); }
.mk-tiny { font-size: 11px; }

/* rack elevation */
.mk-run { width: 19px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font: 600 8.5px ui-monospace, monospace; color: #9aa1b0; }
.mk-gear {
  flex: 1; border-radius: 3px; display: flex; align-items: center; gap: 6px;
  padding: 0 7px; color: #e8ecf3; font-size: 10px; font-weight: 600; letter-spacing: -0.01em;
  background: #2b3648; border: 1px solid #1d2532;
}
.mk-gear.sw { background: #1f3a4d; border-color: #16293a; }
.mk-gear.pp { background: #3a3f4c; border-color: #2a2e39; }
.mk-gear small { margin-left: auto; font-weight: 500; opacity: .62; font-size: 9px; }

/* switch port grid */
.mk-ports { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; max-width: 470px; }
.mk-port {
  aspect-ratio: 1 / 0.82; border-radius: 3px; border: 1px solid #d3d7e0; background: #f4f5f8;
  display: flex; align-items: center; justify-content: center;
  font: 600 9px ui-monospace, monospace; color: #8d94a3;
}
.mk-port.up { background: rgba(5,150,105,.14); border-color: rgba(5,150,105,.4); color: #05745a; }
.mk-port.v20 { background: rgba(37,99,235,.14); border-color: rgba(37,99,235,.4); color: #1d4ed8; }
.mk-port.v30 { background: rgba(217,119,6,.15); border-color: rgba(217,119,6,.42); color: #9a5b06; }
.mk-port.sel { outline: 2px solid var(--cy); outline-offset: 1px; }

.mk-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11px; color: var(--i2); }
.mk-legend span { display: inline-flex; align-items: center; gap: 6px; }
.mk-legend i { width: 10px; height: 10px; border-radius: 3px; display: block; }

@media (max-width: 640px) {
  /* Anchored to the viewport rather than to the button: the button sits
     near the right edge, so a panel hung off it opens off-screen to the
     left. 61px clears the 68px header less its border. */
  .menu-pop {
    position: fixed;
    top: 61px;
    left: 16px;
    right: 16px;
    width: auto;
  }
  .shots { gap: 40px; }
}

/* The product logo at menu size; keeps the dark-mode invert from site.css. */
.menu-item .product-mark { width: 30px; height: 30px; border-radius: 0; }

/* ---------- catalogue card links ---------- */

.product-links {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.product-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}
.product-links a.out { color: var(--muted); font-weight: 500; }
/* The one filled action on a card. */
.product-links a.demo {
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--on-accent);
}
.product-links a.demo:hover { background: var(--accent-hover); }
.product-links a svg { width: 15px; height: 15px; transition: transform 0.18s ease; }
.product-links a:hover svg { transform: translateX(3px); }
.product-links a.out:hover { color: var(--text); }
.product-links a.out:hover svg { transform: translate(2px, -2px); }
@media (prefers-reduced-motion: reduce) {
  .product-links a svg { transition: none; }
}

/* The capability list sits in two columns on a product page, one on the
   catalogue cards; `columns` on a grid container is ignored, so the list
   drops back to block flow where it is asked to split. */
.feats[style*="columns"] { display: block; }
.feats[style*="columns"] li { break-inside: avoid; margin-bottom: 7px; }

/* On a product page the badge sits beside the name, not pushed to the far
   edge the way it is on a catalogue card. */
.phero-top .badge { margin-left: 0; }

/* ---------- product page: workflow + audience ---------- */

.steps { display: grid; }
.step-row {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}
.step-row:last-child { border-bottom: 0; }
.step-no {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
  padding-top: 3px;
}
.step-row h3 { margin: 0 0 6px; font-size: 16px; font-weight: 650; letter-spacing: -0.015em; }
.step-row p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--muted); max-width: 66ch; }

.who { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 28px 32px; }
.who h3 { margin: 0 0 7px; font-size: 15px; font-weight: 650; letter-spacing: -0.01em; }
.who p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--muted); }

.shot-note { margin: 12px 0 0; font-size: 12.5px; color: var(--faint); }

@media (max-width: 560px) {
  .step-row { grid-template-columns: 1fr; gap: 6px; }
}
