/* Cyber Cat LLC — all styles live here. Restyle via the variables below. */

@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-SemiBold.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/JetBrainsMono-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}

:root {
  /* Color */
  --color-bg: #f4f2ee;
  --color-text: #1c1b1a;
  --color-muted: #6b6862;
  --color-hairline: #d9d5ce;
  --color-accent: #3d5afe; /* links, status-pill dot, focus rings only */
  --color-placeholder-border: #e0a100;
  --color-placeholder-bg: #fff6d6;

  /* Type */
  --font-heading: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --heading-weight: 600;
  --heading-tracking: -0.02em;
  --body-size: 17px;
  --body-leading: 1.55;
  --label-size: 13px;
  --label-tracking: 0.06em;
  --h1-size: clamp(40px, 7vw, 64px);
  --tagline-size: 22px;
  --wordmark-size: 18px;
  --product-name-size: 20px;
  --contact-size: 20px;

  /* Layout */
  --max-width: 720px;
  --gutter: 24px;
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--body-size);
  line-height: var(--body-leading);
  -webkit-font-smoothing: antialiased;
}

strong, b { font-weight: 600; }

h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }

.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Links & focus */
a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 0.15em; }
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip-link {
  position: absolute; left: var(--gutter); top: -100px;
  background: var(--color-bg); padding: 8px 12px;
}
.skip-link:focus { top: 8px; }

/* Mono labels & meta */
.label {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: var(--label-size);
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: var(--label-tracking);
  color: var(--color-muted);
}

/* Header */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px 32px;
  padding-top: 24px;
}
.wordmark {
  font-family: var(--font-heading);
  font-weight: var(--heading-weight);
  font-size: var(--wordmark-size);
  letter-spacing: var(--heading-tracking);
}
a.wordmark { color: var(--color-text); text-decoration: none; }
a.wordmark:hover { text-decoration: underline; text-underline-offset: 0.15em; }

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 16px;
}
.site-nav a[aria-current="page"] {
  color: var(--color-text);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* Hero */
.hero { padding: 96px 0 64px; }
.product-hero { padding-bottom: 24px; }
.hero h1 {
  font-family: var(--font-heading);
  font-weight: var(--heading-weight);
  font-size: var(--h1-size);
  line-height: 1.05;
  letter-spacing: var(--heading-tracking);
}
.tagline {
  margin-top: 16px;
  font-size: var(--tagline-size);
  line-height: 1.4;
  color: var(--color-muted);
}

/* Sections */
.section { padding-bottom: 64px; }
.section > .label { margin-bottom: 16px; }

/* Products: rows separated by hairlines */
.products { border-top: 1px solid var(--color-hairline); }
.product {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-hairline);
}
.product-name {
  font-family: var(--font-heading);
  font-weight: var(--heading-weight);
  font-size: var(--product-name-size);
  line-height: 1.3;
  letter-spacing: var(--heading-tracking);
}
.product-desc { color: var(--color-muted); }
.product-status { justify-self: end; text-align: right; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border: 1px solid var(--color-hairline);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: var(--label-size);
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: var(--label-tracking);
  color: var(--color-text);
  white-space: nowrap;
}
.pill-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}
button.pill {
  appearance: none;
  background: transparent;
  cursor: not-allowed;
  font-family: var(--font-mono);
  color: var(--color-text);
}
button.pill:disabled { opacity: 1; }

/* Contact */
.contact { font-size: var(--contact-size); }

/* Footer */
.site-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 24px 0 40px;
  border-top: 1px solid var(--color-hairline);
  font-size: 13px;
  color: var(--color-muted);
}
.site-footer p { text-wrap: balance; } /* no orphaned last word when the line wraps */
.site-footer a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.site-footer a:hover { color: var(--color-text); }

/* Interior pages */
.doc-hero { padding: 48px 0 8px; }
.doc-hero h1 {
  font-family: var(--font-heading);
  font-weight: var(--heading-weight);
  font-size: clamp(32px, 5vw, 44px);
  line-height: 1.1;
  letter-spacing: var(--heading-tracking);
}
.updated {
  margin-top: 12px;
  color: var(--color-muted);
  font-size: 15px;
}

.prose {
  padding-bottom: 64px;
  overflow-wrap: break-word;
}
.prose p + p { margin-top: 12px; }
.prose .signoff { margin-top: 16px; color: var(--color-muted); }
.prose section {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--color-hairline);
}
.prose section[id] { scroll-margin-top: 16px; }
.prose h2 {
  font-family: var(--font-heading);
  font-weight: var(--heading-weight);
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: var(--heading-tracking);
  margin-bottom: 12px;
}
.prose h3 {
  font-family: var(--font-heading);
  font-weight: var(--heading-weight);
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: var(--heading-tracking);
  margin-top: 20px;
  margin-bottom: 6px;
}
.prose h2 + h3 { margin-top: 0; }
.prose ul {
  list-style: disc;
  padding-left: 1.25em;
  margin-top: 12px;
}
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--color-muted); }
.prose ul + p,
.prose p + ul { margin-top: 12px; }

.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 32px;
  margin-top: 4px;
}
.plan {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--color-hairline);
}
.plan h3 {
  font-family: var(--font-heading);
  font-weight: var(--heading-weight);
  font-size: var(--product-name-size);
  line-height: 1.3;
  letter-spacing: var(--heading-tracking);
}
.plan .price {
  font-size: 15px;
  color: var(--color-muted);
}
.plan p { margin-top: 0; }
.plan .price strong {
  font-family: var(--font-heading);
  font-size: 32px;
  letter-spacing: var(--heading-tracking);
  color: var(--color-text);
  margin-right: 4px;
}
.prose .fine-print {
  margin-top: 16px;
  color: var(--color-muted);
  font-size: 15px;
}

/* Placeholders — remove once every item in PLACEHOLDERS.md is filled in */
.placeholder,
[data-placeholder]:not(link) {
  outline: 1px dashed var(--color-placeholder-border);
  outline-offset: 1px;
  background: var(--color-placeholder-bg);
  color: var(--color-text);
  padding: 0 0.2em;
  border-radius: 2px;
}

/* Mobile: status drops under the description */
@media (max-width: 560px) {
  .product { grid-template-columns: 1fr; }
  .product-status { justify-self: start; text-align: left; }
  .site-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .site-nav ul { justify-content: flex-start; }
  .plans { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
