/* Platoware — dark product page.
   Rhythm from space and one tone step, never from rules. No gradients, no shadows at
   rest, no icon cards. Type: system UI stack; monospace only inside code and pre. */

:root {
  --ground: #0a0a0b;
  --surface: #131316;
  --raise: #1a1a1e;
  --line: #2a2a30;
  --ink: #f4f4f5;
  --muted: #a1a1a8;
  --accent: #8ef0c0;
  --pad: 24px;
  --measure: 1180px;
  --gap: 96px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: var(--ground);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

code,
pre {
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: var(--pad);
  top: var(--pad);
  z-index: 10;
  background: var(--ink);
  color: var(--ground);
  padding: 8px 12px;
  border-radius: 6px;
}

/* ---------- bar ---------- */

.bar {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 18px var(--pad);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.brand:hover {
  text-decoration: none;
}

.mark {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 3.2;
  stroke-linecap: square;
}

.mark-short {
  stroke-width: 2.4;
}

.nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: 14px;
  color: var(--muted);
}

.nav a:hover {
  color: var(--ink);
}

/* ---------- buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  background: var(--ink);
  color: var(--ground);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 550;
}

.button:hover {
  text-decoration: none;
  background: #ffffff;
}

.button.small {
  min-height: 36px;
  padding: 0 14px;
  font-size: 14px;
}

.button.quiet {
  background: var(--raise);
  color: var(--ink);
}

.button.quiet:hover {
  background: #232329;
}

/* ---------- layout ---------- */

main {
  display: block;
}

.inner {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.band {
  padding: var(--gap) 0;
}

.band.tinted {
  background: var(--surface);
}

.hero {
  padding: 64px 0 var(--gap);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

/* ---------- hero ---------- */

.hero h1 {
  margin: 0 0 20px;
  max-width: 16ch;
  font-size: clamp(40px, 7vw, 76px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.lede {
  margin: 0 0 32px;
  max-width: 56ch;
  font-size: 19px;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 56px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin: 0;
  max-width: 860px;
}

.facts dt {
  margin-bottom: 4px;
  font-size: 13px;
  color: var(--muted);
}

.facts dd {
  margin: 0;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.facts code {
  color: var(--accent);
}

/* ---------- headings ---------- */

h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.sub {
  margin: 0 0 28px;
  max-width: 62ch;
  color: var(--muted);
}

.sub.tight {
  margin-bottom: 0;
}

.sub strong {
  color: var(--ink);
  font-weight: 600;
}

.note {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- table ---------- */

.table-wrap {
  margin-top: 4px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  table-layout: fixed;
}

th,
td {
  padding: 14px 12px 14px 0;
  text-align: left;
  overflow-wrap: anywhere;
}

thead th {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  padding-top: 0;
}

tbody tr:nth-child(odd) {
  background: var(--surface);
}

tbody tr:hover {
  background: var(--raise);
}

td code {
  color: var(--ink);
}

td:nth-child(n + 4),
th:nth-child(n + 4) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ---------- plans ---------- */

.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plans li {
  padding: 28px;
  background: var(--surface);
  border-radius: 14px;
}

.band.tinted .plans li {
  background: var(--raise);
}

.plans h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 600;
}

.plans .price {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.plans p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- steps ---------- */

.steps {
  margin: 28px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.steps li + li {
  margin-top: 10px;
}

.steps code {
  color: var(--ink);
}

/* ---------- code ---------- */

pre {
  margin: 0 0 32px;
  padding: 22px;
  overflow-x: auto;
  background: var(--surface);
  border-radius: 14px;
  line-height: 1.6;
}

.band.tinted pre {
  background: var(--raise);
}

pre code {
  font-size: 13.5px;
  color: #e8e8ea;
  white-space: pre;
}

/* ---------- interface fragment ---------- */

.ui {
  margin: 0;
  background: var(--raise);
  border-radius: 14px;
  overflow: hidden;
  font-size: 14px;
}

.ui-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--muted);
  background: #17171b;
}

.ui-live {
  color: var(--accent);
}

.ui-rows {
  margin: 0;
  padding: 6px 0;
  list-style: none;
}

.ui-rows li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 14px;
  padding: 10px 16px;
}

.ui-rows li + li {
  border-top: 1px solid transparent;
}

.ui-rows code {
  grid-column: 1;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.ui-meta {
  grid-column: 1;
  font-size: 12.5px;
  color: var(--muted);
}

.ui-cost {
  grid-column: 2;
  grid-row: 1;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.ui-ok,
.ui-retry {
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
  font-size: 12px;
  padding: 1px 7px;
  border-radius: 999px;
}

.ui-ok {
  color: var(--accent);
  background: rgba(142, 240, 192, 0.12);
}

.ui-retry {
  color: #f5d78e;
  background: rgba(245, 215, 142, 0.12);
}

.is-retry .ui-meta {
  color: #f5d78e;
}

/* ---------- screenshot ---------- */

.shot {
  margin: 0;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}

.shot figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

.shot figcaption a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- features ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 48px;
  margin: 0;
}

.features dt {
  margin-bottom: 6px;
  font-size: 16px;
  font-weight: 600;
}

.features dd {
  margin: 0;
  color: var(--muted);
}

/* ---------- motion ---------- */

.rise {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.rise[data-in="true"] {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .rise {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- foot ---------- */

.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 56px var(--pad) 64px;
}

.foot-main p {
  margin: 10px 0 0;
  max-width: 40ch;
  color: var(--muted);
  font-size: 14px;
}

.small-brand {
  font-size: 15px;
}

.foot-links {
  display: flex;
  gap: 20px;
  font-size: 14px;
  color: var(--muted);
}

.foot-links a:hover {
  color: var(--ink);
}

/* ---------- narrow ---------- */

@media (max-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
}

@media (max-width: 760px) {
  :root {
    --gap: 64px;
  }

  .nav {
    display: none;
  }

  .facts,
  .plans,
  .features {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding: 40px 0 var(--gap);
  }

  .col-vendor,
  .col-ctx {
    display: none;
  }

  th,
  td {
    padding: 12px 8px 12px 0;
  }
}

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

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.gallery .shot:first-child {
  grid-row: span 2;
}

.gallery img {
  border-radius: 14px;
}

@media (max-width: 760px) {
  .gallery {
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery .shot:first-child {
    grid-row: auto;
  }
}
