/* shared.css — design system primitives reused across every askbud.io page.
 *
 * Pages that include this file: /, /terms, /privacy, /admin/login,
 * /admin/dashboard, /architecture.html, /dutchie-api-overview.html,
 * /askbud-overview.html, /demo. Page-specific styles live alongside in
 * each page's own stylesheet (landing.css, legal.css, etc.).
 *
 * Inter + Inter Tight are loaded via <link> in each page's <head>. */

:root {
  --bg: #f4f1eb;
  --ink: #0a0a0a;
  --ink-2: #1a1a1a;
  --muted: #5c5a55;
  --rule: rgba(10, 10, 10, 0.1);
  --rule-soft: rgba(10, 10, 10, 0.06);
  --green: #83b842;
  --green-deep: #728627;
  --green-pale: #d2fb9d;
  --core: #0a1e16;
  --serif: 'Inter Tight', 'Inter', system-ui, sans-serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --display: 'Inter Tight', 'Inter', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 48px;
}

@media (max-width: 720px) {
  .container { padding: 0 24px; }
}

/* ── Eyebrow ──────────────────────────────────────────────────────────── */
.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 12px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
}

.eyebrow--dark {
  color: var(--ink);
  border-color: rgba(10, 10, 10, 0.18);
}

/* ── Display + section title typographic primitives ──────────────────── */
.display, .section-title {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.035em;
  color: var(--ink);
  text-wrap: balance;
}

.display em, .section-title em {
  font-style: normal;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  display: inline-block;
  isolation: isolate;
}

.display em::after, .section-title em::after {
  content: '';
  position: absolute;
  left: -0.04em;
  right: -0.04em;
  bottom: 0.08em;
  height: 0.34em;
  background: var(--green-pale);
  z-index: -1;
  border-radius: 3px;
}

.display {
  font-size: clamp(44px, 5.4vw, 84px);
  line-height: 1.05;
  margin: 0;
}

.section-title {
  font-size: clamp(38px, 5.5vw, 72px);
  line-height: 1.02;
  margin: 0;
}

.section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 64px;
  max-width: 880px;
}

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--ink);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--core);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}

.btn-ghost:hover {
  border-color: var(--ink);
  background: rgba(255, 255, 255, 0.5);
}

.btn-sm {
  padding: 9px 16px;
  font-size: 14px;
}

.btn-lg {
  padding: 18px 32px;
  font-size: 16px;
}

.phone-icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
}

/* ── Nav ──────────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 48px;
  background: rgba(244, 241, 235, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}

@media (max-width: 720px) {
  .nav { padding: 18px 24px; }
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  display: inline-flex;
  width: 26px;
  height: 26px;
}

.logo-text {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  opacity: 0.75;
  transition: opacity 0.15s ease;
}

.nav-link:hover { opacity: 1; }

/* ── Footer ───────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--rule);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.footer-tag {
  font-size: 12.5px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 22px;
  font-size: 13px;
  color: var(--muted);
}

.footer-links a:hover { color: var(--ink); }

.footer-fineprint {
  font-size: 12.5px;
  color: var(--muted);
}
