/* Catalog engine base: layout and behavior only. The niche brand.css owns the world (color, type, material). */
:root {
  --bg: #fff; --ink: #111; --ink-2: #333; --ink-3: #555; --line: #ccc; --panel: #f4f4f4; --accent: #1f4fd1; --accent-ink: #fff;
  --font: system-ui, -apple-system, "Segoe UI", sans-serif; --typed: ui-monospace, Menlo, monospace;
  --wrap: 1240px; --gut: 24px; --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 1.0625rem; line-height: 1.55; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
table { border-collapse: collapse; width: 100%; }
h1, h2, h3 { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 8px 12px; background: var(--ink); color: var(--bg); }
.skip:focus { top: 8px; }
.typed { font-family: var(--typed); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* masthead */
.mast-row { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.logo { text-decoration: none; color: inherit; flex: none; }
.mast-search { flex: 1; max-width: 440px; display: flex; }
.mast-search input { flex: 1; min-width: 0; height: 44px; padding: 0 12px; }
.mast-search button { width: 48px; display: grid; place-items: center; }
.mast-nav { margin-left: auto; }
.mast-nav ul { display: flex; gap: 4px; }
.mast-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; text-decoration: none; }
.nav-toggle { display: none; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; }
.crumbs li:not(:last-child)::after { content: "/"; padding: 0 8px; }

/* listing layout */
.listing { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; align-items: start; }
.listing.no-rail { grid-template-columns: minmax(0, 1fr); }
.results-col { min-width: 0; }
.rail { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; overscroll-behavior: contain; }
.rail-head, .rail-foot { display: none; }
.fopt { display: flex; align-items: center; gap: 10px; min-height: 40px; cursor: pointer; }
.fopt .fl { flex: 1; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.toolbar-actions { display: flex; gap: 8px; }
.only-narrow { display: none; }
.active-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.active-chips button, .empty-actions button { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; }
.active-chips .i, .empty-actions .i { width: 14px; height: 14px; }

/* entries */
.entry { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 300px); gap: 0 28px; scroll-margin: 24px; }
.entry-name a { color: inherit; }
.status { display: flex; gap: 6px; align-items: flex-start; }
.status .i { width: 16px; height: 16px; margin-top: 3px; }
.go { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; text-decoration: none; }
.go .i { width: 16px; height: 16px; }

/* price scale */
.scale { margin: 0; }
.scale-track { position: relative; height: 64px; }
.scale-tick { position: absolute; left: var(--x); top: 0; bottom: 0; }
.scale-tick span { position: absolute; bottom: -22px; transform: translateX(-50%); white-space: nowrap; }
.scale-mark { position: absolute; left: var(--x); top: 10px; bottom: 10px; width: 3px; margin-left: -1px; }
.scale-mark .scale-label { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); white-space: nowrap; pointer-events: none; opacity: 0; }
.scale-mark:hover .scale-label, .scale-mark.on .scale-label { opacity: 1; }
.scale-mark.off { opacity: 0.12; pointer-events: none; }
.scale-cap { margin-top: 30px; }

/* tool */
.tool-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
.tool-aside { position: sticky; top: 16px; display: grid; gap: 16px; }
.tool-next { display: grid; }
.sticky-cta { display: none; }
.compare-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }

/* misc */
.index-list li { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.faq-item summary { cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }

@media (max-width: 1023px) {
  .listing { grid-template-columns: minmax(0, 1fr); }
  .only-narrow { display: inline-flex; }
  .rail { position: fixed; inset: auto 0 0 0; z-index: 60; max-height: 85vh; transform: translateY(105%); transition: transform 280ms var(--ease); visibility: hidden; }
  .rail.open { transform: none; visibility: visible; }
  .rail-head, .rail-foot { display: flex; align-items: center; justify-content: space-between; position: sticky; z-index: 1; }
  .rail-head { top: 0; } .rail-foot { bottom: 0; }
  body.sheet-open::after { content: ""; position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, 0.4); }
  .tool-grid { grid-template-columns: minmax(0, 1fr); }
  .tool-aside { position: static; }
  .compare-plans { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  :root { --gut: 16px; }
  .mast-row { flex-wrap: wrap; gap: 8px 12px; padding: 10px 0; }
  .mast-search { order: 3; flex-basis: 100%; max-width: none; }
  .nav-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; background: none; border: 0; }
  .mast-nav ul { display: none; }
  .mast-nav ul.open { display: flex; flex-direction: column; position: absolute; left: 0; right: 0; z-index: 40; padding: 8px 16px 16px; }
  .entry { grid-template-columns: minmax(0, 1fr); }
  .sticky-cta { display: flex; position: sticky; bottom: 0; z-index: 30; padding: 10px 16px; }
  .sticky-cta .go { flex: 1; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
.scale-mark .scale-label { display: none; left: 0; transform: translateX(calc(var(--x) * -1)); }
.scale-mark:hover .scale-label, .scale-mark.on .scale-label { display: block; }
.scale-track { overflow: visible; }
.scale { overflow-x: clip; overflow-y: visible; }
/* the scale's one authored motion: marks rise from the axis, left to right by price */
.will-rise .scale-mark { transform: scaleY(0); transform-origin: 50% 100%; }
.will-rise.risen .scale-mark { transform: scaleY(1); transition: transform 520ms var(--ease) calc(var(--xn) * 9ms); }
@media (max-width: 760px) {
  /* plan tables restack as rows of facts on phones instead of scrolling sideways */
  .plans thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .plans, .plans tbody, .plans tr, .plans th, .plans td { display: block; width: auto; }
  .plans tr { display: grid; grid-template-columns: auto auto 1fr; gap: 2px 12px; padding: 10px 12px; }
  .plans tbody th { grid-column: 1 / -1; padding: 0; }
  .plans td { padding: 0; text-align: left !important; }
  .plans td:nth-of-type(1)::before { content: "Monthly "; font-family: var(--font); font-weight: 700; }
  .plans td:nth-of-type(2)::before { content: "Yearly "; font-family: var(--font); font-weight: 700; }
  .plans td:nth-of-type(3) { grid-column: 3; color: var(--ink-3); }
  .plans td:nth-of-type(4) { grid-column: 1 / -1; }
  .side td { min-width: 0; }
}
@media (max-width: 760px) {
  .plans tr { grid-template-columns: auto auto minmax(0, 1fr); }
  .plans td, .plans th { overflow-wrap: anywhere; min-width: 0; }
  .side thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .side, .side tbody, .side tr, .side th, .side td { display: block; width: auto !important; min-width: 0; }
  .side tr { padding: 10px 12px; }
  .side td { padding: 4px 0 0; }
  .side td[data-tool]::before { content: attr(data-tool) ": "; font-family: var(--font); font-weight: 800; }
  .side tbody th { padding: 0; }
}
@media (max-width: 760px) {
  .plans tr { display: flex; flex-wrap: wrap; gap: 2px 14px; }
  .plans tbody th, .plans td:nth-of-type(3), .plans td:nth-of-type(4) { flex-basis: 100%; }
  .plans td.is-empty { display: none; }
}
