/**
 * Surety Made Simple — global base + component primitives
 * Source: surety-brand-guide.html
 *
 * Loaded last in the bond007-bottom.css bundle (see config/asset_compress.ini)
 * so these rules win the cascade over the legacy style.css/app.css/home.css
 * stack at equal specificity, without editing those files directly.
 */

/* ---------- GLOBAL TYPE & LINKS ---------- */

body {
  font-family: var(--font-body);
  color: var(--slate-500);
  background-color: var(--surface-0);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink-900);
}

a {
  color: var(--blue-500);
}

a:hover,
a:focus {
  color: var(--blue-800);
}

code, .mono, .text-mono {
  font-family: var(--font-mono);
}

::selection {
  background: var(--green-100);
  color: var(--ink-900);
}

/* ---------- BUTTON SHAPE & MOTION (colors stay per-variant, restyled per template) ---------- */

.btn {
  font-family: var(--font-body);
  font-weight: 700;
  border-radius: 999px;
  transition: transform var(--duration-base) var(--ease), box-shadow var(--duration-base) var(--ease), background-color var(--duration-base) var(--ease), color var(--duration-base) var(--ease), border-color var(--duration-base) var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

/* ---------- NEW COMPONENT PRIMITIVES (brand-guide "Components" section) ---------- */

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--action-gradient);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 24px;
  border-radius: 999px;
  text-decoration: none;
  border: none;
  box-shadow: var(--shadow-action);
  transition: transform var(--duration-base) var(--ease), box-shadow var(--duration-base) var(--ease);
}

.cta-btn:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 20px 36px -10px rgba(59, 99, 219, .68);
}

/* app.css's .page-container a { color: #3B63DB; } outranks the plain
   .cta-btn selector (one more selector segment), same problem it already
   solves for .btn via .page-container a.btn — extend that pattern here. */
.page-container a.cta-btn,
.page-container a.cta-btn:hover {
  color: #fff;
}

.cta-btn svg {
  width: 16px;
  height: 16px;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-0);
  color: var(--ink-700);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13.5px;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  text-decoration: none;
}

.btn-outline:hover {
  color: var(--ink-900);
  border-color: var(--slate-300);
}

.btn-success {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--green-500), var(--green-600));
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  border: none;
  box-shadow: var(--shadow-success);
}

.btn-success:hover,
.btn-success:focus {
  color: #fff;
}

.tag-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--green-600);
  background: var(--green-100);
  border: 1px solid rgba(75, 158, 103, .4);
  border-radius: 999px;
  padding: 3px 10px;
}

/* neutral variant — e.g. the "PDF" download indicator, sitting next to
   .tag-badge "Popular" labels without competing for the same green accent */
.tag-badge-neutral {
  color: var(--slate-500);
  background: var(--surface-100);
  border-color: var(--border);
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--green-600);
  background: var(--green-100);
  border-radius: 999px;
  padding: 8px 15px;
}

.status-chip .dt {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-500);
}

.eyebrow, .eyebrow-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green-600);
}

/* A plain table row, not a bordered card — rows are only separated by a
   hairline bottom border; "Popular"/PDF signal via the badges next to the
   title, not a tinted card background. */
.demo-card {
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: 20px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: transparent;
}

.demo-card-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.demo-card .name,
.demo-card .name a {
  font-weight: 700;
  font-size: 18px;
  color: var(--blue-500);
}

.demo-card .meta {
  font-size: 13px;
  font-weight: 500;
  color: var(--slate-500);
  margin-top: 6px;
}

.demo-card-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  flex: none;
  color: var(--slate-300);
  font-size: 14px;
  text-decoration: none;
  transition: color var(--duration-base) var(--ease), background-color var(--duration-base) var(--ease);
}

.demo-card-arrow:hover {
  color: var(--blue-500);
  background: var(--surface-50);
}
