/* Anahata v2 — button. Figma: "Button" set. */

.a-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--a-space-3);
  padding: var(--a-space-3) var(--a-space-4);
  border: 0;
  border-radius: var(--a-radius);
  font-family: var(--a-font-body);
  font-weight: 400;
  font-size: var(--a-fs-body-l);
  line-height: 1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.15s ease;
  -webkit-tap-highlight-color: transparent; /* no grey flash on tap */
}

/* Dawn's *:focus-visible adds a grey box-shadow on top of the outline below */
.a-btn:focus,
.a-btn:focus-visible {
  box-shadow: none;
}

.a-btn:hover {
  opacity: 0.85;
}

.a-btn:focus-visible {
  outline: 2px solid var(--a-ink-pure);
  outline-offset: 2px;
}

.a-btn[disabled],
.a-btn[aria-disabled='true'] {
  opacity: 0.4;
  pointer-events: none;
}

.a-btn__suffix {
  font-weight: 600;
}

.a-btn .a-icon {
  flex: 0 0 auto;
}

/* variants */
.a-btn--primary {
  background: var(--a-ink-pure);
  color: var(--a-on-dark);
}

/* Figma Button/Logout + Variant10: #e5e5ea ground, #1a1a1a label */
.a-btn--secondary {
  background: var(--a-fill-secondary);
  color: var(--a-ink);
}

/* Figma Button/Secondary: #f5f8fa ground, #727272 label. Distinct from the
   above — the set carries both; we only had the darker one. */
.a-btn--panel {
  background: var(--a-panel);
  color: var(--a-text-muted);
}

.a-btn--ghost {
  background: var(--a-bg);
  color: var(--a-text-muted);
}

.a-btn--brand {
  background: var(--a-gradient-brand);
  color: var(--a-on-dark);
  font-weight: 700;   /* every primary action bold, as in the design (designer review 2026-09-26 #5 #9) */
}

.a-btn--cta {
  background: var(--a-ink-pure);
  color: var(--a-on-dark);
  font-family: var(--a-font-display);
  font-size: var(--a-fs-body-s);
  letter-spacing: 0.03em;
}

/* sizes */
.a-btn--sm {
  gap: var(--a-space-2);
  padding: var(--a-space-2) var(--a-space-3);
  font-size: var(--a-fs-body-s);
  font-weight: 600;
}

.a-btn--md {
  min-height: 44px;
}

.a-btn--lg {
  min-height: 64px;
  padding: var(--a-space-4) var(--a-space-5);
}

.a-btn--full {
  width: 100%;
}
