/* pendnt — shared stylesheet.
   Direction: Industrial / utilitarian — a spec-sheet, not a poster. Dense, table-driven,
   labels over ornament. Two Google-hosted faces (IBM Plex Sans for reading, IBM Plex Mono
   for anything technical: code, tags, the numbering on section heads) plus real fallback
   stacks. Sharp corners, hairline borders instead of shadows, one signal color that means
   "needs a human" — which is, not coincidentally, what this product is for.
   External requests: fonts.googleapis.com only (Google Fonts), nothing else. */

:root {
  --font-sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --radius: 3px;
  --radius-sm: 2px;

  --bg: #f1f1ee;
  --bg-raised: #ffffff;
  --fg: #14151a;
  --fg-muted: #52565f;
  --border: #d1d2cc;

  --accent: #a8480a;
  --accent-hover: #8a3c08;
  --accent-fg: #fff8f0;
  --link: #a8480a;
  --focus: #14151a;

  --code-bg: #e7e6df;
  --code-fg: #14151a;

  --ok: #1c7a4b;
  --warn: #8a5a00;
  --danger: #a3251c;
  --put: #35586d;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1013;
    --bg-raised: #17181c;
    --fg: #eceae5;
    --fg-muted: #a6a69e;
    --border: #302f27;

    --accent: #e2822e;
    --accent-hover: #ef9a4f;
    --accent-fg: #171008;
    --link: #e2822e;
    --focus: #eceae5;

    --code-bg: #1b1c20;
    --code-fg: #eceae5;

    --ok: #3fbf7f;
    --warn: #e6c15a;
    --danger: #e2685c;
    --put: #7fa6c2;
  }
}

* { box-sizing: border-box; }

html { color-scheme: light dark; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

code, pre, kbd, .mono { font-family: var(--font-mono); }

a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

.wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---- header ---- */

.site-header {
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  flex-wrap: wrap;
}

.brand {
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  color: var(--fg);
  font-family: var(--font-mono);
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--accent); }

.site-header nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  flex-wrap: wrap;
}

.site-header nav a {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.9rem;
}
.site-header nav a:hover { color: var(--fg); }

.cta, a.cta {
  background: var(--accent);
  color: var(--accent-fg) !important;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius);
  border: 1px solid var(--accent);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-decoration: none !important;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.cta:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.cta:active { background: var(--accent); }

.cta-secondary {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--fg-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.cta-secondary:hover { color: var(--fg); border-color: var(--fg); }

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin: 1.4rem 0 1.9rem;
}

/* ---- main / prose ---- */

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
  counter-reset: sect;
}

main.wide { max-width: 900px; }

h1 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.9rem;
  margin: 0 0 0.6rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h2 {
  counter-increment: sect;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.3rem;
  margin: 2.3rem 0 0.8rem;
  border-top: 1px solid var(--border);
  padding-top: 1.6rem;
  letter-spacing: -0.005em;
}
h2:first-of-type { border-top: none; padding-top: 0; }
h2::before {
  content: "\00a7" counter(sect, decimal-leading-zero) "  ";
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.75rem;
  color: var(--fg-muted);
}

h3 { font-family: var(--font-sans); font-weight: 700; font-size: 1.05rem; margin: 1.6rem 0 0.5rem; }
h4 { font-family: var(--font-sans); font-weight: 700; font-size: 0.95rem; margin: 1.2rem 0 0.4rem; }

p { margin: 0.7rem 0; }
ul, ol { padding-left: 1.4rem; }
li { margin: 0.3rem 0; }

.lede {
  font-size: 1.1rem;
  color: var(--fg-muted);
  margin: 0.9rem 0 1.6rem;
}

.subtitle { color: var(--fg-muted); margin-top: -0.3rem; }

.status-note {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--warn);
  background: transparent;
  border: 1px solid var(--warn);
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-sm);
  margin: 0.5rem 0 1.4rem;
}

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

code {
  background: var(--code-bg);
  color: var(--code-fg);
  padding: 0.15em 0.4em;
  border-radius: var(--radius-sm);
  font-size: 0.88em;
}

pre {
  background: var(--code-bg);
  color: var(--code-fg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.5;
  position: relative;
}

pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  font-size: 1em;
}

.code-wrap { position: relative; margin: 1rem 0; }

.copy-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: var(--bg-raised);
  color: var(--fg-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.2rem 0.5rem;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.copy-btn:hover { color: var(--fg); border-color: var(--fg-muted); }

/* ---- spec panel: labeled code block for the landing-page hero sample ---- */

.spec-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 1.4rem 0;
  overflow: hidden;
}
.spec-panel__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-muted);
  background: var(--bg-raised);
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 1rem;
}
.spec-panel pre { border: none; border-radius: 0; margin: 0; }
.spec-panel .code-wrap { margin: 0; }

/* ---- tables ---- */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.92rem;
  overflow-x: auto;
  display: block;
}

th, td {
  text-align: left;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  vertical-align: top;
}

th {
  background: var(--bg-raised);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ---- endpoint / tool cards ---- */

.endpoint {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin: 1.1rem 0;
  background: var(--bg-raised);
}

.endpoint h3 { margin-top: 0; }

.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--accent-fg);
  margin-right: 0.5rem;
  letter-spacing: 0.02em;
}
.tag.get { background: var(--ok); }
.tag.delete { background: var(--danger); }
.tag.put { background: var(--put); }

/* ---- cards / grids ---- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.2rem 0;
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}
.card h3 { margin-top: 0; }
.card a.stretched { text-decoration: none; color: var(--fg); }

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

.price-table th, .price-table td { text-align: center; }
.price-table th:first-child, .price-table td:first-child { text-align: left; }
.price-table .plan-name { font-family: var(--font-mono); font-weight: 700; text-transform: none; letter-spacing: 0; }
.price-table .price { font-size: 1.1rem; font-weight: 700; }

/* ---- footer ---- */

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 3rem;
}

.site-footer .wrap {
  padding: 1.6rem 1.25rem 2.4rem;
  color: var(--fg-muted);
  font-size: 0.88rem;
  max-width: 900px;
}

.site-footer p { margin: 0.35rem 0; }
.site-footer nav { margin-top: 0.6rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.site-footer nav a { color: var(--fg-muted); }

/* ---- misc ---- */

.hr { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

blockquote {
  margin: 1rem 0;
  padding: 0.2rem 1rem;
  border-left: 3px solid var(--accent);
  color: var(--fg-muted);
}

.small { font-size: 0.85rem; color: var(--fg-muted); }

.breadcrumbs {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--fg-muted);
  margin-bottom: 0.6rem;
}
.breadcrumbs a { color: var(--fg-muted); }

.toc {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.3rem;
  margin: 1.2rem 0;
}
.toc p {
  margin: 0 0 0.4rem;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--fg-muted);
}
.toc ul { margin: 0; }
