/* ============================================================
   Top-level landing styles for the maker page.

   Intentionally separate from `barista/styles.css` so each product
   under `website/<product>/` can ship its own design without
   leaking into this scaffolding. Shared design tokens (palette,
   radii, max-width) live here too — copy them per-product if you
   want consistency, or override them entirely.
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-soft: #f3f8fe;
  --bg-cool: #e6f0fc;
  --bg-card: #ffffff;
  --border: #e1eaf6;

  --text: #0f1722;
  --text-muted: #4f5e75;
  --text-faint: #94a3b7;

  --accent: #2980f4;
  --accent-deep: #1565d8;
  --accent-hover: #1f6fd8;
  --accent-soft: #d6e8fc;
  --accent-tint: rgba(41, 128, 244, 0.10);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --max-width: 1080px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

a { color: var(--accent); text-decoration: none; cursor: pointer; }
a:hover { color: var(--accent-hover); }
button, [role="button"], summary { cursor: pointer; }

h1, h2, h3 {
  margin: 0;
  letter-spacing: -0.015em;
  color: var(--text);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
  background: var(--accent-soft);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

/* ---------------- Nav ---------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  /* No backdrop-filter: a sticky element with backdrop-filter triggers
     a long-standing WebKit bug where cursor: pointer stops updating
     (page-wide), so links never show the hand in Safari while Chrome
     is fine. Near-opaque background keeps the nav legible over
     scrolled content without the frosted blur. */
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text);
  font-size: 1rem;
}
.nav__brand:hover { color: var(--text); }
.nav__brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.nav__links {
  display: flex;
  gap: 18px;
}
.nav__link {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
}
.nav__link--active { color: var(--accent-deep); }

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

.intro {
  padding: 88px 0 48px;
  text-align: center;
  background:
    radial-gradient(700px 360px at 50% -10%, var(--accent-tint), transparent 70%),
    var(--bg);
}
.intro__avatar {
  width: 96px;
  height: 96px;
  border-radius: 18px;
  /* The source is a tiny pixel-art PNG — let the browser show real
     square pixels instead of bilinear-blurring them. */
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  border: 1px solid var(--border);
  box-shadow: 0 4px 14px rgba(15, 23, 34, 0.08);
  margin-bottom: 4px;
}
.intro__title {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  margin: 18px 0 14px;
}
.intro__sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* ---------------- Product grid + cards ---------------- */

.products {
  padding: 32px 0 72px;
}

.product-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 24px 0;
  box-shadow: 0 6px 24px rgba(15, 23, 34, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(15, 23, 34, 0.08);
}

.product-card__banner {
  display: block;
  position: relative;
  min-height: 320px;
  background: linear-gradient(135deg, var(--bg-cool), var(--bg-soft));
}
.product-card__banner-placeholder {
  position: absolute;
  inset: 16px;
  border: 2px dashed var(--accent-soft);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
/* App Store preview clip — fills the banner cell, cover-cropped. Sits
   under the wrapping <a> and ignores pointer events so the whole
   banner still clicks through to the product page. */
.product-card__banner-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.product-card__body {
  padding: 36px 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-card__heading {
  display: flex;
  align-items: center;
  gap: 14px;
}
.product-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(15, 23, 34, 0.10);
}
.product-card__title {
  font-size: 1.7rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.1;
}
.product-card__tag {
  margin: 4px 0 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.product-card__copy {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
}

.product-card__actions {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 4px;
}
.product-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
}
.product-card__cta:hover {
  background: var(--accent-hover);
  color: #fff;
}
.product-card__cta--quiet {
  background: transparent;
  color: var(--accent-deep);
  padding: 10px 4px;
}
.product-card__cta--quiet:hover {
  background: transparent;
  color: var(--accent-hover);
}

/* ---------------- Footer ---------------- */

.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  color: var(--text-faint);
  font-size: 0.88rem;
  text-align: center;
}

/* ---------------- Mobile ---------------- */

@media (max-width: 820px) {
  .product-card { grid-template-columns: 1fr; }
  .product-card__banner { min-height: 220px; }
  .product-card__body { padding: 28px 24px 26px; }
  .product-card__actions { flex-wrap: wrap; }
}
