/*
 * Shared stylesheet for the Pawsitive Future developer docs (/, /api/, /mcp/).
 *
 * Fonts and colors are lifted from the previous claudedocs/mcp/guide.html: same Poppins +
 * JetBrains Mono pairing, same blue/green/amber/coral palette. Fonts are real files here rather
 * than the base64 data URIs that design embedded — that doc was built to also stand alone as a
 * PDF, this is a multi-page site where three pages sharing one stylesheet beats three copies of
 * the same ~80KB of font data.
 */

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./fonts/jetbrains-mono-400.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('./fonts/jetbrains-mono-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./fonts/poppins-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('./fonts/poppins-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('./fonts/poppins-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('./fonts/poppins-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('./fonts/poppins-800.woff2') format('woff2');
}

:root {
  --blue: #2d6a9f;
  --blue-700: #255a89;
  --blue-800: #1e4970;
  --navy: #122d45;
  --navy-2: #173a59;
  --tint: #eaf1f7;
  --tint-2: #f5f8fb;
  --tint-line: #c9ddef;
  --green: #4caf50;
  --green-ink: #2e7d32;
  --green-tint: #eef8ef;
  --green-line: #bfe3c2;
  --amber: #f9a825;
  --amber-ink: #7a5a12;
  --amber-tint: #fff6e0;
  --amber-line: #f0d98a;
  --coral: #e57373;
  --ink: #1c2530;
  --ink-soft: #4f5d6b;
  --ink-faint: #8593a3;
  --line: #d5dde5;
  --paper: #fff;
  --font: 'Poppins', 'Century Gothic', ui-rounded, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.6;
}
code,
.mono {
  font-family: var(--mono);
}
code {
  font-size: 0.88em;
  background: var(--tint);
  color: var(--blue-800);
  padding: 2px 6px;
  border-radius: 4px;
}
b,
strong {
  font-weight: 600;
}
a {
  color: var(--blue-700);
}
.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Signature gradient rule, reused from the original doc's running header. */
.sigrule {
  height: 3px;
  background: linear-gradient(90deg, var(--blue) 0 42%, var(--green) 42% 66%, var(--amber) 66% 86%, var(--coral) 86% 100%);
}

/* ---- Nav bar, shared by all three pages ---------------------------------------------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-nav .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: 980px;
  margin: 0 auto;
  gap: 16px;
}
.site-nav .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.site-nav .brand img {
  width: 30px;
  height: auto;
}
.site-nav .brand .wm {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.site-nav .brand .wm span {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.site-nav .brand .wm b {
  font-weight: 800;
  color: var(--blue);
}
.site-nav .brand .wm small {
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.site-nav .links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-nav .links a {
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-soft);
  padding: 7px 12px;
  border-radius: 7px;
}
.site-nav .links a:hover {
  background: var(--tint);
  color: var(--blue-800);
}
.site-nav .links a[aria-current='page'] {
  background: var(--tint);
  color: var(--blue-800);
}

/* ---- Type ----------------------------------------------------------------------------------- */
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-ink);
}
h1 {
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--blue-800);
  margin: 10px 0 14px;
}
h2 {
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--blue-800);
  margin: 0 0 6px;
}
h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 6px;
}
p {
  margin: 0 0 1em;
  max-width: 62em;
}
p.lead {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 42em;
}
.muted {
  color: var(--ink-soft);
}
.small {
  font-size: 14px;
}
section {
  padding: 56px 0;
}
section.tight {
  padding: 36px 0;
}
section + section {
  border-top: 1px solid var(--line);
}

/* ---- Hero ------------------------------------------------------------------------------------ */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--tint-2);
  padding: 56px 0 44px;
}
.hero .watermark {
  position: absolute;
  width: 340px;
  right: -60px;
  top: -40px;
  opacity: 0.07;
}
.hero .inner {
  position: relative;
}

/* ---- Numbered steps --------------------------------------------------------------------------*/
.steps {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, 1fr);
}
.step {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 16px 18px;
  background: #fff;
}
.step .n {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 10px;
}
.step p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 0;
}

/* ---- Tenets ------------------------------------------------------------------------------------ */
.tenets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.tenet {
  border-top: 3px solid var(--blue);
  padding-top: 10px;
}
.tenet:nth-child(2) {
  border-top-color: var(--green);
}
.tenet:nth-child(3) {
  border-top-color: var(--amber);
}
.tenet p {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0;
}

/* ---- Code ------------------------------------------------------------------------------------ */
.tab {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  color: #cfe0f0;
  background: var(--navy-2);
  padding: 4px 12px 3px;
  border-radius: 7px 7px 0 0;
}
pre.code {
  background: var(--navy);
  color: #dbe7f3;
  border-radius: 10px;
  padding: 14px 16px;
  margin: 0;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: auto;
}
.tab + pre.code {
  border-top-left-radius: 0;
}
pre.code .c {
  color: #86a3bf;
}
pre.code .s {
  color: #b9e4bc;
}
pre.code .k {
  color: #9ccaf2;
}
pre.code .f {
  color: #ffd36b;
}

/* ---- Tables ------------------------------------------------------------------------------------ */
.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
.tbl th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 6px 10px;
  border-bottom: 1.5px solid var(--blue);
}
.tbl td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.5;
}
.tbl td.k {
  font-weight: 600;
  white-space: nowrap;
}

/* ---- Callouts ------------------------------------------------------------------------------------ */
.callout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  border: 1px solid var(--tint-line);
  background: var(--tint-2);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14.5px;
}
.callout .tag {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--blue);
  padding: 3px 9px;
  border-radius: 99px;
  margin-top: 1px;
  white-space: nowrap;
}
.callout.heads {
  background: var(--amber-tint);
  border-color: var(--amber-line);
}
.callout.heads .tag {
  background: var(--amber);
  color: var(--navy);
}
.callout.good {
  background: var(--green-tint);
  border-color: var(--green-line);
}
.callout.good .tag {
  background: var(--green-ink);
}

/* ---- Confirm-dialog mockup -------------------------------------------------------------------- */
.dialog {
  border: 1px solid #c4cfda;
  border-radius: 12px;
  background: #fff;
  box-shadow:
    0 1px 2px rgba(18, 45, 69, 0.06),
    0 10px 26px rgba(18, 45, 69, 0.1);
  overflow: hidden;
}
.dialog .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--tint-2);
  border-bottom: 1px solid var(--line);
  padding: 8px 14px;
  font-size: 12.5px;
  color: var(--ink-soft);
}
.dialog .bar b {
  color: var(--ink);
}
.dialog pre {
  margin: 0;
  padding: 12px 16px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.55;
  white-space: pre-wrap;
  color: var(--ink);
}
.dialog .tick {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  font-weight: 600;
}
.dialog .box {
  width: 15px;
  height: 15px;
  border: 1.5px solid var(--blue);
  border-radius: 3px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--blue);
  font-size: 11px;
  line-height: 1;
}
.dialog .actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 0 16px 13px;
}
.dialog .btn {
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 7px;
  border: 1px solid #c4cfda;
  color: var(--ink-soft);
}
.dialog .btn.go {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

/* ---- Prompt cards -------------------------------------------------------------------------- */
.prompts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.pr {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
}
.pr q {
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.4;
  quotes: '\201C' '\201D';
}

/* ---- Generic two-column layout (quickstart's command/prompts pair) -------------------------- */
.two-col {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
  align-items: start;
}

/* ---- Catalog cards (the two links to /api/ and /mcp/) --------------------------------------- */
.catalogs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.catalog-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  background: #fff;
  transition: border-color 0.15s ease;
}
.catalog-card:hover {
  border-color: var(--blue);
}
.catalog-card .eyebrow {
  color: var(--blue-700);
}
.catalog-card h3 {
  font-size: 20px;
  margin: 8px 0 8px;
}
.catalog-card p {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin: 0;
}
.catalog-card .go {
  display: inline-block;
  margin-top: 14px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--blue-700);
}

/* ---- Footer ----------------------------------------------------------------------------------- */
.site-foot {
  padding: 28px 0 40px;
  font-size: 13px;
  color: var(--ink-faint);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.site-foot a {
  color: var(--ink-faint);
}

@media (max-width: 760px) {
  .steps {
    grid-template-columns: 1fr 1fr;
  }
  .tenets,
  .prompts,
  .catalogs,
  .callout {
    grid-template-columns: 1fr;
  }
  .callout .tag {
    justify-self: start;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .site-nav .brand .wm small {
    display: none;
  }
}

@media (max-width: 480px) {
  .steps {
    grid-template-columns: 1fr;
  }
}
