/* Come Out and Play — shared brand stylesheet.
   Served at https://www.coap247.com/brand.css and linked by BOTH the marketing site and the
   COAP.Api server-rendered action pages, so the whole web surface reads as one product.
   Design direction (site spec §8): modern, outdoors-oriented, clean, warm, adult, lightly nostalgic. */

:root {
  /* Palette — a deep teal-green primary matched to the app, on a soft warm-neutral canvas. */
  --green: #0f6e5d;
  --green-dark: #0a5445;
  --green-soft: #e6f2ee;
  --amber: #e0912f; /* warm accent for the primary "download" CTA */
  --amber-dark: #c2761b;
  --ink: #17251f;
  --muted: #566662;
  --bg: #f5f8f6;
  --surface: #ffffff;
  --border: #dbe4df;
  --focus: #0f6e5d;
  --radius: 14px;
  --maxw: 1080px;
  --maxw-prose: 46rem;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: 1.2; color: var(--ink); font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
a { color: var(--green-dark); text-underline-offset: 2px; }
a:hover { color: var(--green); }
img { max-width: 100%; height: auto; }

/* Visible focus for keyboard users (WCAG 2.4.7). */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--green); color: #fff;
  padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 100;
}
.skip-link:focus { left: 0; }

/* ── Layout ─────────────────────────────────────────────────────── */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.prose { max-width: var(--maxw-prose); }
.section { padding: 64px 0; }
.section-tint { background: var(--green-soft); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; font-weight: 700; color: var(--green); margin: 0 0 8px; }
.lead { font-size: 1.15rem; color: var(--muted); }
.center { text-align: center; }

/* ── Header / nav ───────────────────────────────────────────────── */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 40; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px; max-width: var(--maxw); margin: 0 auto; }
.brand { font-weight: 800; font-size: 1.15rem; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.brand:hover { color: var(--green); }
.brand .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--green); display: inline-block; }
.nav-links { display: flex; gap: 22px; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.98rem; }
.nav-links a:hover { color: var(--green); }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; font-size: 1rem; cursor: pointer; }
@media (max-width: 820px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--surface); border-bottom: 1px solid var(--border); padding: 8px 20px 16px; }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 10px 0; border-top: 1px solid var(--border); }
  .nav-toggle { display: inline-block; }
}

/* ── Buttons ────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 1rem; padding: 13px 22px; border-radius: 999px; border: 2px solid transparent; cursor: pointer; text-decoration: none; transition: background-color .15s, border-color .15s, color .15s; }
.btn-primary { background: var(--amber); color: #26170a; border-color: var(--amber); }
.btn-primary:hover { background: var(--amber-dark); border-color: var(--amber-dark); color: #26170a; }
.btn-green { background: var(--green); color: #fff; border-color: var(--green); }
.btn-green:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--green-dark); border-color: var(--green); }
.btn-outline:hover { background: var(--green-soft); color: var(--green-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Cards / grids ──────────────────────────────────────────────── */
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 820px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.card h3 { margin-top: 0; }
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.pill { background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px; font-weight: 500; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding-left: 30px; position: relative; margin-bottom: 10px; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--green); font-weight: 800; }

/* Hero */
.hero { padding: 72px 0 56px; }
.hero .lead { max-width: 40rem; }
.callout { background: var(--green-soft); border-left: 4px solid var(--green); border-radius: 8px; padding: 14px 18px; margin: 18px 0; }
.note { color: var(--muted); font-size: 0.95rem; }

/* ── Forms ──────────────────────────────────────────────────────── */
.form { max-width: 34rem; }
.field { margin: 0 0 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 12px; font: inherit; color: var(--ink);
  background: var(--surface); border: 1px solid #b9c6c0; border-radius: 10px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field .hint { color: var(--muted); font-size: 0.9rem; margin-top: 4px; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { border-radius: 10px; padding: 12px 14px; margin: 0 0 16px; }
.alert-warn { background: #fff4e5; border: 1px solid #f3c98a; color: #6b4a10; }
.alert-info { background: var(--green-soft); border: 1px solid #bcd9d0; }

/* ── Legal / long-form document layout ─────────────────────────── */
.legal { max-width: var(--maxw-prose); }
.legal h2 { margin-top: 2.2rem; }
.legal h3 { margin-top: 1.6rem; }
.legal ul, .legal ol { padding-left: 1.3rem; }
.legal li { margin-bottom: 6px; }
.doc-meta { color: var(--muted); font-size: 0.95rem; border-bottom: 1px solid var(--border); padding-bottom: 12px; margin-bottom: 24px; }

/* ── Footer ─────────────────────────────────────────────────────── */
.site-footer { background: var(--ink); color: #cdd8d3; margin-top: 40px; }
.site-footer a { color: #e7efeb; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; padding: 48px 0 24px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
.footer-grid h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 9px; }
.footer-bottom { border-top: 1px solid #2c3d37; padding: 18px 0; font-size: 0.88rem; color: #9fb0aa; }
