/* Product pages: components on top of base.css. Set --a (accent) per page. */
section.s { padding-top: 120px; }
.lede { color: var(--muted); font-size: 17px; max-width: 680px; margin-bottom: 40px; }
.hero-top .home { display: flex; align-items: center; gap: 10px; color: var(--fg); }
.hero-top .home img { width: 26px; height: 26px; }
.hero .meta { display: flex; flex-wrap: wrap; gap: 6px 22px; font-family: var(--mono); font-size: 12px; color: var(--dim); margin-top: 22px; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn.solid { background: var(--a); color: #06080a; border-color: var(--a); }
.btn.solid i { background: #06080a; }
.btn.solid:hover { background: transparent; color: var(--a); }
.btn.solid:hover i { background: var(--a); }

/* Cell grid (features) */
.cells { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cells > div { background: var(--bg); padding: 24px 22px; transition: background .25s; }
.cells > div:hover { background: var(--panel); }
.cells .k { font-family: var(--mono); font-size: 11.5px; color: var(--a); margin-bottom: 14px; display: block; }
.cells h3 { font-size: 18px; font-weight: 500; letter-spacing: -.01em; margin-bottom: 8px; }
.cells p { color: var(--muted); font-size: 14.5px; }

/* Compare table */
.cmp { width: 100%; border-collapse: collapse; font-size: 15px; }
.cmp th, .cmp td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp th { font-family: var(--mono); font-size: 11.5px; font-weight: 400; color: var(--dim); text-transform: uppercase; letter-spacing: .06em; }
.cmp td:first-child { color: var(--fg); }
.cmp td small { display: block; color: var(--dim); font-size: 13px; }
.cmp td { color: var(--muted); font-family: var(--mono); font-size: 13px; }
.cmp td:first-child { font-family: var(--sans); font-size: 15px; }
.cmp .y { color: var(--ok); } .cmp .n { color: var(--bad); }
.cmp th:last-child, .cmp td:last-child { color: var(--a); }

/* Code block */
.code { border: 1px solid var(--line-2); background: #06080a; margin: 14px 0 22px; }
.code-bar { display: flex; justify-content: space-between; align-items: center; padding: 8px 14px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 11.5px; color: var(--dim); }
.code-bar button { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.code-bar button:hover { color: var(--a); }
.code { min-width: 0; max-width: 100%; }
.code pre { padding: 14px 16px; overflow-x: auto; font-family: var(--mono); font-size: 13px; line-height: 1.7; color: var(--fg); }
.code .c { color: var(--dim); } .code .p { color: var(--a); user-select: none; }
.prose p { color: var(--muted); max-width: 720px; margin-bottom: 12px; }
.prose h3 { font-size: 19px; font-weight: 500; margin: 28px 0 8px; }

/* Steps */
.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.steps ol { list-style: none; counter-reset: s; }
.steps ol li { counter-increment: s; position: relative; padding: 10px 0 10px 34px; border-bottom: 1px solid var(--line); color: var(--muted); }
.steps ol li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 13px; font-family: var(--mono); font-size: 12px; color: var(--a); }
.steps h3 { font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }

/* FAQ */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font-size: 17px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "[+]"; font-family: var(--mono); font-size: 13px; color: var(--dim); }
.faq details[open] summary::after { content: "[−]"; color: var(--a); }
.faq summary:hover { color: var(--a); }
.faq p { color: var(--muted); padding-bottom: 20px; max-width: 760px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-family: var(--mono); font-size: 12.5px; color: var(--muted); border: 1px solid var(--line-2); padding: 4px 10px; }
.chips li.off { text-decoration: line-through; color: var(--dim); }

.cta-end { margin-top: 120px; border: 1px solid var(--line-2); padding: 40px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; background: linear-gradient(90deg, var(--panel), var(--bg)); }
.cta-end h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 500; letter-spacing: -.03em; }

.toast { position: fixed; bottom: 22px; left: 50%; transform: translate(-50%, 20px); opacity: 0; font-family: var(--mono); font-size: 12.5px; background: var(--panel); border: 1px solid var(--a); padding: 8px 14px; transition: .25s; pointer-events: none; z-index: 50; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 900px) {
  .hero-top .home { font-size: 0; gap: 0; }
  .cells, .steps { grid-template-columns: minmax(0, 1fr); }
  /* Tables become stacked cards: one block per row, cells labelled via data-label */
  .cmp thead { display: none; }
  .cmp, .cmp tbody, .cmp tr, .cmp td { display: block; width: 100%; }
  .cmp tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .cmp td { border: 0; padding: 2px 0; }
  .cmp td[data-label]::before { content: attr(data-label); display: inline-block; min-width: 92px; font-family: var(--mono); font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .06em; }
  .cmp td:first-child { font-size: 16px; padding-bottom: 6px; }
  .cmp td:first-child::before { display: none; }
  .cmp th:last-child, .cmp td:last-child { color: var(--a); }
  .s-head h2 { font-size: 28px; }
  .lede { font-size: 16px; }
  .code pre { font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
  .cta-end .btns { width: 100%; }
  section.s { padding-top: 88px; }
  .cta-end { padding: 28px 22px; }
}
/* Screenshot tabs (shared by product pages) */
.tabs { display: flex; flex-wrap: wrap; border: 1px solid var(--line-2); width: fit-content; max-width: 100%; margin-bottom: 14px; }
.tabs button { font-family: var(--mono); font-size: 12.5px; padding: 8px 14px; color: var(--muted); border-right: 1px solid var(--line-2); }
.tabs button:last-child { border-right: 0; }
.tabs button[aria-selected="true"] { background: var(--a); color: #06080a; }
.shot { display: none; }
.shot.on { display: block; }
.shot img { width: 100%; height: auto; border: 1px solid var(--line); }
.shot figcaption { font-size: 14.5px; color: var(--muted); margin-top: 12px; }
#shots { margin-bottom: 48px; }

/* Numbered step grid */
.flow { counter-reset: f; display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.flow li { counter-increment: f; background: var(--bg); padding: 22px; list-style: none; }
.flow li::before { content: counter(f, decimal-leading-zero); display: block; font-family: var(--mono); font-size: 11.5px; color: var(--a); margin-bottom: 10px; }
.flow b { display: block; font-weight: 500; font-size: 17px; margin-bottom: 6px; }
.flow span { color: var(--muted); font-size: 14.5px; }
@media (max-width: 900px) { .flow { grid-template-columns: minmax(0, 1fr); } }
