/*!
 * Backyard Tools — shared stylesheet for the marketing/policy site.
 * No external CDN, no framework. Single file, system font stack.
 */

:root {
  color-scheme: light;
  --color-bg: #f5f6f8;
  --color-surface: #ffffff;
  --color-text: #1c2128;
  --color-text-muted: #55606b;
  --color-border: #dde1e6;
  --color-primary: #2452eb;
  --color-primary-dark: #1a3ec2;
  --color-badge-bg: #e3f6ea;
  --color-badge-text: #14663a;
  --radius-md: 8px;
  --radius-lg: 14px;
  --max-width: 760px;
  --font-base: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
}

* {
  box-sizing: border-box;
}

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

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

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--color-primary-dark);
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--color-badge-bg);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-size: 0.9em;
}

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

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

.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-text);
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 1.15rem;
  flex-wrap: wrap;
}

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

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--color-primary);
}

/* ---- page shell ---- */

.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.page__title {
  margin: 0;
  font-size: 1.85rem;
}

.page__lead {
  margin: 0;
  margin-top: 0.75rem;
  color: var(--color-text-muted);
}

/* ---- prose sections (policy pages, docs) ---- */

.doc-section {
  margin-top: 2.25rem;
}

.doc-section h2 {
  margin: 0;
  font-size: 1.15rem;
}

.doc-section h3 {
  margin: 0;
  margin-top: 1.1rem;
  font-size: 1rem;
}

.doc-section p {
  margin: 0;
  margin-top: 0.75rem;
}

.doc-section ul,
.doc-section ol {
  margin: 0;
  margin-top: 0.75rem;
  padding-left: 1.4rem;
}

.doc-section li {
  padding-top: 0.3rem;
}

.doc-section li:first-child {
  padding-top: 0;
}

/* ---- app card (index.html) ---- */

.app-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.app-card__badge {
  display: inline-block;
  background: var(--color-badge-bg);
  color: var(--color-badge-text);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
}

.app-card__title {
  margin: 0;
  margin-top: 0.6rem;
  font-size: 1.2rem;
}

.app-card__desc {
  margin: 0;
  margin-top: 0.5rem;
  color: var(--color-text-muted);
}

.app-card__links {
  display: flex;
  gap: 1.1rem;
  margin-top: 0.85rem;
  flex-wrap: wrap;
}

/* ---- FAQ ---- */

.faq-item {
  margin-top: 1.25rem;
}

.faq-item dt {
  font-weight: 600;
}

.faq-item dd {
  margin: 0;
  margin-top: 0.35rem;
  color: var(--color-text-muted);
}

/* ---- callout ---- */

.callout {
  margin-top: 1.5rem;
  padding: 1rem 1.15rem;
  background: var(--color-badge-bg);
  border-radius: var(--radius-md);
  color: var(--color-badge-text);
  font-size: 0.95rem;
}

.callout p {
  margin: 0;
  margin-top: 0.5rem;
}

.callout p:first-child {
  margin-top: 0;
}

/* ---- support form ---- */

.support-form {
  margin-top: 1.5rem;
}

.field {
  margin-top: 1.1rem;
}

.field:first-child {
  margin-top: 0;
}

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
}

.field input,
.field textarea {
  margin-top: 0.4rem;
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font: inherit;
  background: var(--color-surface);
  color: var(--color-text);
}

.field textarea {
  resize: vertical;
}

/* Honeypot: a hidden field real visitors never see or fill in. Off-screen
   positioning (not display:none) is a deliberate anti-spam technique, not
   a layout shortcut — most simple bots still fill in display:none fields
   but skip ones that are merely off-screen, so this is a functional
   choice about how the field behaves, not how the page is laid out. */
.field--honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.btn-primary {
  margin-top: 1.4rem;
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: 0.65rem 1.3rem;
  border-radius: var(--radius-md);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
}

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

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

.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.25rem;
  color: var(--color-text-muted);
  font-size: 0.88rem;
}

.site-footer__inner p {
  margin: 0;
  margin-top: 0.5rem;
}

.site-footer__inner p:first-child {
  margin-top: 0;
}

.site-footer__brand {
  font-weight: 700;
  color: var(--color-text);
}

.site-footer__links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}
