/* ============================================================
   MARKETING PAGE — shared chrome for the simple content pages
   (about, blog, contact, api, privacy, terms, security, cookies).
   Mirrors the index.html .dnav + .ft styles so the brand surface
   is consistent. Pair with css/tokens.css + css/app.css.
   ============================================================ */

body { background: var(--bg); color: var(--text-1); font-family: var(--font-sans); }

/* Slim sticky top nav — same as homepage. */
.dnav {
  position: sticky; top: 0; z-index: 40; height: 56px;
  background: var(--surface); border-bottom: 1px solid var(--border-light);
}
.dnav .inner {
  max-width: 1280px; margin: 0 auto; height: 100%; padding: 0 24px;
  display: flex; align-items: center; gap: 28px;
}
.dnav nav { display: flex; gap: 22px; margin-left: 24px; }
.dnav nav a {
  font-size: 13px; font-weight: 500; color: var(--text-2);
  text-decoration: none; transition: color 100ms;
}
.dnav nav a:hover, .dnav nav a.active { color: var(--text-1); }
.dnav .ctas { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.dnav .login { font-size: 13px; color: var(--text-2); text-decoration: none; font-weight: 500; }
.dnav .live-dot {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-family: var(--font-mono); color: var(--text-3);
  padding: 3px 8px; background: var(--muted); border-radius: 999px;
}
.dnav .live-dot::before {
  content: ""; width: 6px; height: 6px; background: var(--pass-text);
  border-radius: 50%;
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--pass-text) 25%, transparent);
  animation: dnav-pulse 2.4s infinite;
}
@keyframes dnav-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }

/* Page container */
.mp-wrap { max-width: 880px; margin: 0 auto; padding: 64px 28px 96px; }
.mp-hero { padding-bottom: 32px; border-bottom: 1px solid var(--border-light); margin-bottom: 40px; }
.mp-hero .eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
.mp-hero h1 {
  font-family: var(--font-sans);
  font-size: 44px; font-weight: 700; letter-spacing: -1px;
  color: var(--text-1); line-height: 1.1; margin-bottom: 16px;
}
.mp-hero .lede {
  font-size: 18px; color: var(--text-2); line-height: 1.6;
  max-width: 640px;
}

.mp-body { font-size: 15px; color: var(--text-2); line-height: 1.7; }
.mp-body h2 {
  font-size: 22px; font-weight: 700; color: var(--text-1);
  letter-spacing: -.3px; margin: 36px 0 12px;
}
.mp-body h3 {
  font-size: 16px; font-weight: 600; color: var(--text-1);
  margin: 24px 0 8px;
}
.mp-body p { margin-bottom: 14px; }
.mp-body ul, .mp-body ol { margin: 0 0 14px 22px; }
.mp-body li { margin-bottom: 6px; }
.mp-body b, .mp-body strong { color: var(--text-1); font-weight: 600; }
/* Inline text links — scoped with :not(.btn) so we don't override
   the .btn / .btn-primary text colour (which would put blue text on a
   blue button = invisible). */
.mp-body a:not(.btn) { color: var(--accent); }

/* Inline contact-card grid used by contact.html */
.mp-contact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px; margin: 24px 0;
}
.mp-contact-card {
  background: var(--surface); border: 1px solid var(--border-light);
  border-radius: 12px; padding: 20px;
}
.mp-contact-card h3 { margin: 0 0 6px; font-size: 14px; font-weight: 700; color: var(--text-1); }
.mp-contact-card p { font-size: 13px; color: var(--text-2); margin: 0; }
.mp-contact-card a { color: var(--accent); font-weight: 600; }

/* Code block for the API page */
.mp-code {
  background: var(--text-1); color: #f9fafb;
  font-family: var(--font-mono); font-size: 12px;
  padding: 16px 18px; border-radius: 10px;
  overflow-x: auto; margin: 12px 0 18px; line-height: 1.55;
}

/* Footer (same as homepage) */
.ft { background: var(--surface); border-top: 1px solid var(--border-light); padding: 56px 0 20px; margin-top: 60px; }
.ft .inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 32px;
}
.ft h5 { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-1); margin: 0 0 14px; }
.ft ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.ft ul a { color: var(--text-2); text-decoration: none; font-size: 13px; }
.ft ul a:hover { color: var(--text-1); }
.ft .ft-tag { font-size: 13px; color: var(--text-3); margin-top: 12px; line-height: 1.5; max-width: 280px; }
.ft .ft-bottom {
  max-width: 1280px; margin: 40px auto 0; padding: 20px 24px 0;
  border-top: 1px solid var(--border-light);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--text-3);
}
@media (max-width: 980px) {
  .ft .inner { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 720px) {
  .ft .inner { grid-template-columns: 1fr 1fr; }
  .mp-hero h1 { font-size: 32px; }
  /* Let the top nav wrap and drop the decorative "Live" pill so the
     logo + nav links + CTAs stop overflowing the viewport on phones. */
  .dnav .inner { flex-wrap: wrap; row-gap: 10px; }
  .dnav .live-dot { display: none; }
  .dnav nav { margin-left: 0; }
}
