/*
 * Shared chrome and primitives for the listicle and landing-page templates.
 * Built on tokens.css + ui.css from the code build (src/figma), so the
 * templates read as dreamteam.ai. Page-specific styles live in each page's CSS.
 */

body { background: var(--color-surface); }

/* ---------- Header (matches the live site: logo, centred links, demo pill) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: rgb(255 255 255 / 0.92);
  -webkit-backdrop-filter: blur(var(--blur-glass));
  backdrop-filter: blur(var(--blur-glass));
  border-bottom: 1px solid var(--color-border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  min-height: 4.5rem;
}
.site-header__logo { display: inline-flex; align-items: center; min-height: var(--tap-target); }
.site-header__logo img { height: 1.5rem; width: auto; }
.site-header__nav { display: flex; gap: var(--space-10); font-size: var(--text-body); }
.site-header__nav a { text-decoration: none; color: var(--color-text); }
@media (max-width: 1023px) { .site-header__nav { display: none; } }

/* ---------- The demo pill (live site's "Schedule a demo" with the arrow chip) ---------- */
.btn-demo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
  min-height: var(--tap-target);
  padding: var(--space-1) var(--space-1) var(--space-1) var(--space-5);
  border: 0;
  border-radius: var(--radius-full);
  background: var(--color-surface-inverse);
  color: var(--color-text-inverse);
  font: var(--weight-medium) var(--text-body) / 1 var(--font-body);
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: inset 0 0 0 2px var(--color-border-inverse), var(--shadow-button);
  transition: background-color var(--duration-base) var(--ease-out), scale var(--duration-fast) var(--ease-out);
}
.btn-demo__chip {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--color-surface);
  color: var(--color-text-strong);
  transition: translate var(--duration-base) var(--ease-out);
}
.btn-demo__chip svg { width: 1rem; height: 1rem; }
.btn-demo:active { scale: 0.97; }
@media (hover: hover) and (pointer: fine) {
  .btn-demo:hover { background: var(--neutral-800); }
  .btn-demo:hover .btn-demo__chip { translate: 1px -1px; }
}
.btn-demo:focus-visible { outline: none; box-shadow: var(--ring-focus); }
.btn-demo--light { background: var(--color-surface); color: var(--color-text-strong); box-shadow: var(--shadow-sm); }
.btn-demo--light .btn-demo__chip { background: var(--color-surface-inverse); color: var(--color-text-inverse); }
@media (hover: hover) and (pointer: fine) { .btn-demo--light:hover { background: var(--neutral-100); } }

/* Quiet text link with an arrow, for soft CTAs */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1-5);
  color: var(--color-text-strong);
  font-weight: var(--weight-medium);
  text-decoration: underline;
  text-decoration-color: var(--color-border-strong);
  text-underline-offset: 0.25em;
  transition: text-decoration-color var(--duration-base) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .link-arrow:hover { text-decoration-color: currentColor; } }

/* ---------- Email capture (live hero: pill input + demo pill) ---------- */
.email-capture {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  width: min(100%, 35rem);
  padding: var(--space-1-5) var(--space-1-5) var(--space-1-5) var(--space-6);
  border-radius: var(--radius-full);
  background: var(--color-surface);
  box-shadow: 0 0 0 1px var(--color-border), var(--shadow-sm);
}
.email-capture input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font: var(--text-body) / 1.5 var(--font-body);
  color: var(--color-text-strong);
  outline: none;
}
.email-capture input::placeholder { color: var(--color-text-subtle); }
.email-capture:focus-within { box-shadow: 0 0 0 1px var(--color-text-subtle), var(--shadow-sm); }
@media (max-width: 479px) {
  .email-capture { flex-direction: column; align-items: stretch; padding: var(--space-2); border-radius: var(--radius-xl); }
  .email-capture input { padding: var(--space-3) var(--space-3); }
  .email-capture .btn-demo { justify-content: space-between; }
}

/* ---------- Brand pill tag: white pill with a red dot (brand guide) ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  line-height: 1.43;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}
.pill::before {
  content: '';
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--color-accent);
}
.pill--plain::before { display: none; }

/* ---------- Brand red word in display headlines ---------- */
.t-accent { color: var(--color-accent); }

/* ---------- Soft brand glow (coral → gold, low opacity, as on the live hero) ---------- */
.glow-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(40% 50% at 18% 85%, rgb(254 154 140 / 0.18), transparent 70%),
    radial-gradient(35% 45% at 8% 70%, rgb(238 221 145 / 0.22), transparent 70%);
}

/* ---------- Footer stub ---------- */
.site-footer {
  padding-block: var(--space-16) var(--space-10);
  background: var(--color-surface-ember);
  color: var(--color-text-inverse-muted);
  font-size: var(--text-sm);
}
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-6); }
.site-footer a { display: inline-flex; align-items: center; min-height: var(--tap-target); color: inherit; text-decoration: none; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: var(--space-6); }

/* ---------- Layout helpers ---------- */
.stack { display: flex; flex-direction: column; }
.cluster { display: flex; flex-wrap: wrap; align-items: center; }
.muted { color: var(--color-text-muted); }

@media (prefers-reduced-motion: reduce) {
  .btn-demo, .btn-demo__chip, .link-arrow { transition: none; }
}
