:root {
  /* Navy + teal, matching both product logos' own palette — one shared
     family look rather than a distinct accent color per product. */
  --bg: #f7f9fb;
  --ink: #14181c;
  --ink-muted: #5b6470;
  --card-bg: #ffffff;
  --border: #e1e6ea;
  --navy: #173f6b;
  --teal: #2a9d8f;
  --accent: var(--teal);
  --accent-ink: #ffffff;
  --ff-accent: var(--teal);
  --bb-accent: var(--teal);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1720;
    --ink: #f2f0ea;
    --ink-muted: #a3aab3;
    --card-bg: #16232f;
    --border: #223140;
    --navy: #7ea6d1;
    --teal: #45c2b1;
    --accent: var(--teal);
    --accent-ink: #0d1720;
    --ff-accent: var(--teal);
    --bb-accent: var(--teal);
  }
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 980px; margin: 0 auto; padding: 0 24px; }

header.top {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
header.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.brand {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.brand .dot { color: var(--accent); }

.top-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.9rem;
}
.top-nav a {
  color: var(--ink-muted);
  text-decoration: none;
  font-weight: 600;
}
.top-nav a:hover, .top-nav a[aria-current="page"] { color: var(--accent); }

.hero {
  padding: 72px 0 56px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}
.hero p.lede {
  font-size: 1.15rem;
  color: var(--ink-muted);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

.values {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}
.values span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border-radius: 999px;
  padding: 7px 14px;
}

.products {
  padding: 24px 0 72px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 700px) {
  .products { grid-template-columns: 1fr; }
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.card .product-logo {
  /* The source logos have a light background baked in — an explicit
     white plate behind them (rather than letting the card's own
     background show through) keeps that intentional-looking in both
     light and dark mode, instead of a stray white box appearing only
     when the page is dark. */
  display: block;
  max-width: 100%;
  height: auto;
  background: #ffffff;
  border-radius: 10px;
  padding: 12px 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
.card .tag {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.card.ff .tag { color: var(--ff-accent); }
.card.bb .tag { color: var(--bb-accent); }
.card p.desc {
  color: var(--ink-muted);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}
.card .cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.card a.cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
}
.card.ff a.cta { color: var(--ff-accent); }
.card.bb a.cta { color: var(--bb-accent); }
.card a.cta:hover { text-decoration: underline; }
.card a.cta.secondary {
  color: var(--ink-muted);
  font-weight: 500;
}

.about {
  padding: 8px 0 80px;
}
.about-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.about h3 {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin: 0 0 14px;
}
.about p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
  margin: 0 0 16px;
}
.about p:last-child { margin-bottom: 0; }

.screenshots {
  padding: 8px 0 72px;
}
.screenshots h2 {
  font-size: 1.6rem;
  text-align: center;
  margin: 0 0 32px;
  letter-spacing: -0.01em;
}
.screenshots-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 700px) {
  .screenshots-grid { grid-template-columns: 1fr; }
}
.screenshot-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
}
.screenshot-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.screenshot-card .caption {
  margin: 12px 2px 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-muted);
}
.screenshot-card.pending {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  color: var(--ink-muted);
  font-size: 0.9rem;
  text-align: center;
}
.screenshots-more {
  text-align: center;
  margin-top: 8px;
}
.screenshots-more a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
}
.screenshots-more a:hover { text-decoration: underline; }

.how-we-work {
  padding: 8px 0 72px;
  border-top: 1px solid var(--border);
}
.how-we-work .wrap {
  max-width: 780px;
}
.how-we-work h2, .faq h2 {
  font-size: 1.6rem;
  text-align: center;
  margin: 0 0 32px;
  letter-spacing: -0.01em;
}
.how-we-work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 700px) {
  .how-we-work-grid { grid-template-columns: 1fr; }
}
.how-we-work-grid > div h4 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: var(--accent);
}
.how-we-work-grid > div p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-muted);
}

.faq {
  padding: 8px 0 80px;
  border-top: 1px solid var(--border);
}
.faq .wrap {
  max-width: 780px;
}
.faq-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.faq-item:last-child { border-bottom: none; }
.faq-item h4 {
  margin: 0 0 8px;
  font-size: 1.02rem;
}
.faq-item p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--ink-muted);
}

footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  text-align: center;
  color: var(--ink-muted);
  font-size: 0.85rem;
}
footer .footer-links {
  margin-top: 8px;
  display: flex;
  justify-content: center;
  gap: 16px;
}
footer .footer-links a {
  color: var(--ink-muted);
  text-decoration: none;
  font-weight: 600;
}
footer .footer-links a:hover { text-decoration: underline; }

/* ── Product subpages (flock-and-field.html / bin-and-box.html) ── */

.product-hero {
  padding: 56px 0 40px;
  text-align: center;
}
.product-hero img.hero-logo {
  display: inline-block;
  max-width: 100%;
  height: auto;
  background: #ffffff;
  border-radius: 10px;
  padding: 14px 20px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
  margin-bottom: 20px;
}
.product-hero h1 {
  font-size: clamp(1.8rem, 4.5vw, 2.5rem);
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}
.product-hero p.lede {
  font-size: 1.1rem;
  color: var(--ink-muted);
  max-width: 620px;
  margin: 0 auto 24px;
  line-height: 1.6;
}
a.cta-primary {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 0.98rem;
}
a.cta-primary:hover { opacity: 0.92; }

.feature-list {
  padding: 8px 0 64px;
}
.feature-list .wrap { max-width: 780px; }
.feature-list h2 {
  font-size: 1.4rem;
  margin: 0 0 24px;
  text-align: center;
  letter-spacing: -0.01em;
}
.feature-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 32px;
}
@media (max-width: 700px) {
  .feature-list ul { grid-template-columns: 1fr; }
}
.feature-list li {
  padding-left: 26px;
  position: relative;
  color: var(--ink);
  line-height: 1.55;
  font-size: 0.98rem;
}
.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.product-screens {
  padding: 8px 0 64px;
  border-top: 1px solid var(--border);
}
.product-screens .wrap { max-width: 780px; }
.product-screens h2 {
  font-size: 1.4rem;
  margin: 0 0 24px;
  text-align: center;
  letter-spacing: -0.01em;
}
.product-screens .shot {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 24px;
}
.product-screens .shot:last-child { margin-bottom: 0; }
.product-screens .shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.product-screens .shot .caption {
  margin: 12px 2px 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-muted);
}
.product-screens .shot.live-embed iframe {
  display: block;
  width: 100%;
  height: 900px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}
.product-screens .shot.live-embed .caption a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  margin-left: 6px;
}
.product-screens .shot.live-embed .caption a:hover { text-decoration: underline; }

.product-screens .shot.pending {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  color: var(--ink-muted);
  font-size: 0.95rem;
  text-align: center;
}

.product-footer-cta {
  padding: 8px 0 72px;
  text-align: center;
  border-top: 1px solid var(--border);
}
.product-footer-cta h2 {
  font-size: 1.4rem;
  margin: 0 0 16px;
}
